view config/initializers/ext_string.rb @ 129:9348882a4f35

Update gems
author nanaya <me@nanaya.pro>
date Sun, 01 Oct 2017 03:50:55 +0900
parents 61414d0a367b
children
line wrap: on
line source

class String
  def printable
    gsub(/[^\n[:print:]]/, '')
  end
end