Re:Short Ruby News – edition 93
by p8 on Tuesday June 04, 2024 @09:22AM
(#40574353)
Squish also replaces consecutive whitespace with a single space.
" foo bar \n \t boo".squish # => "foo bar boo"
https://api.rubyonrails.org/classes/String.html#method-i-squ...
[ Parent
| on HN ]
There are no comments on this comment yet.