view config/initializers/ext_string.rb @ 149:8a84441a8f55

Update gems
author nanaya <me@nanaya.pro>
date Sat, 13 Jan 2018 03:16:35 +0900
parents 61414d0a367b
children e2150dce4e90
line wrap: on
line source

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