Re:Short Ruby News – edition 93
by Alifatisk on Monday June 03, 2024 @07:02AM
(#40561427)
I don't get the Rails tip for using #squish method. Isn't it the same as #strip?
[ Parent
| on HN ]
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...