view config/initializers/ext_string.rb @ 213:609e96a79ad8

Update defaults
author nanaya <me@nanaya.pro>
date Fri, 11 Dec 2020 03:41:31 +0900
parents 61414d0a367b
children
line wrap: on
line source

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