view config/initializers/ext_string.rb @ 127:05216b67d01d

Update gems
author nanaya <me@nanaya.pro>
date Fri, 08 Sep 2017 21:17:53 +0900
parents 61414d0a367b
children
line wrap: on
line source

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