view config/initializers/ext_string.rb @ 194:5dd7d81f76e6

Update gems
author nanaya <me@nanaya.pro>
date Sun, 23 Feb 2020 18:56:15 +0900
parents 61414d0a367b
children
line wrap: on
line source

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