view config/initializers/ext_string.rb @ 125:61414d0a367b

Less breakage
author nanaya <me@nanaya.pro>
date Wed, 23 Aug 2017 16:35:58 +0900
parents
children
line wrap: on
line source

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