lib/active_support/core_ext/string/filter.rb
# Performs a destructive squish. See String#squish.
Performs a destructive squish. See String#squish.
Performs a destructive squish . See String#squish .
def squish!
    gsub!(/\A[[:space:]]+/, '')
    gsub!(/[[:space:]]+\z/, '')
    gsub!(/[[:space:]]+/, ' ')
    self
  end
def squish! gsub! ( / \A [[:space:]]+ / , '' ) gsub! ( / [[:space:]]+ \z / , '' ) gsub! ( / [[:space:]]+ / , ' ' ) self end
Performs a destructive squish.
Performs a destructive squish .