view config/initializers/ext_string.rb @ 202:d12f671185a8

Update gems
author nanaya <me@nanaya.pro>
date Sat, 22 Aug 2020 04:38:30 +0900
parents 61414d0a367b
children
line wrap: on
line source

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