view config/initializers/ext_string.rb @ 261:8c47a69cbfdb

Missing default 8.0 bin
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 23:01:58 +0900
parents e2150dce4e90
children
line wrap: on
line source

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