1 module ActiveSupport
#:nodoc:
2 module CoreExtensions
#:nodoc:
5 # Returns the string, first removing all whitespace on both ends of
6 # the string, and then changing remaining consecutive whitespace
7 # groups into one space each.
11 # string }.squish # => "Multi-line string"
12 # " foo bar \n \t boo".squish # => "foo bar boo"
17 # Performs a destructive squish. See String#squish.