view config/initializers/ext_string.rb @ 200:168318b7d11e

Update gems
author nanaya <me@nanaya.pro>
date Thu, 06 Aug 2020 23:08:59 +0900
parents 61414d0a367b
children e2150dce4e90
line wrap: on
line source

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