view config/initializers/ext_string.rb @ 157:6e6051cd9cca

Or maybe not
author nanaya <me@nanaya.pro>
date Sat, 28 Jul 2018 03:42:23 +0900
parents 61414d0a367b
children
line wrap: on
line source

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