view config/initializers/ext_string.rb @ 217:12555a247f93

Update gems
author nanaya <me@nanaya.pro>
date Sun, 10 Jan 2021 23:41:18 +0900
parents 61414d0a367b
children e2150dce4e90
line wrap: on
line source

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