Flowdock
method

squish!

Importance_1
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: String
squish!() public

Performs a destructive squish. See String#squish.

str = " foo   bar    \n   \t   boo"
str.squish!                         # => "foo bar boo"
str                                 # => "foo bar boo"
Show source
Register or log in to add new notes.