Hacker News new | past | comments | ask | show | jobs | submit login
Short Ruby News – edition 93 (shortruby.com)
1 point by gls2ro 10 months ago | hide | past | favorite | 2 comments



I don't get the Rails tip for using #squish method. Isn't it the same as #strip?


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...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: