News for hackers. Stuff that matters.
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?
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...