view config/initializers/ext_string.rb @ 133:64f697fe3af1

Updaste gems
author nanaya <me@nanaya.pro>
date Sat, 09 Dec 2017 20:13:24 +0900
parents 61414d0a367b
children
line wrap: on
line source

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