view config/initializers/ext_string.rb @ 138:7907fe886675

Better use symbol?
author nanaya <me@nanaya.pro>
date Wed, 13 Dec 2017 03:46:32 +0900
parents 61414d0a367b
children
line wrap: on
line source

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