view config/initializers/ext_string.rb @ 142:2d873f57f424

Forgot about this one
author nanaya <me@nanaya.pro>
date Wed, 13 Dec 2017 04:57:04 +0900
parents 61414d0a367b
children
line wrap: on
line source

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