annotate config/initializers/ext_string.rb @ 262:cd927bb7dc0d

Move out custom application config
author nanaya <me@nanaya.net>
date Mon, 16 Dec 2024 01:39:38 +0900
parents e2150dce4e90
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
125
61414d0a367b Less breakage
nanaya <me@nanaya.pro>
parents:
diff changeset
1 class String
61414d0a367b Less breakage
nanaya <me@nanaya.pro>
parents:
diff changeset
2 def printable
260
e2150dce4e90 Rubocop (rails) time
nanaya <me@nanaya.net>
parents: 125
diff changeset
3 gsub(/[^\n[:print:]]/, "")
125
61414d0a367b Less breakage
nanaya <me@nanaya.pro>
parents:
diff changeset
4 end
61414d0a367b Less breakage
nanaya <me@nanaya.pro>
parents:
diff changeset
5 end