view config/initializers/ext_string.rb @ 141:88d7a7714d4e

Restrict to just the fetch process
author nanaya <me@nanaya.pro>
date Wed, 13 Dec 2017 04:31:31 +0900
parents 61414d0a367b
children
line wrap: on
line source

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