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.