Flowdock
squeeze!(del=nil) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/jcode.rb, line 160
  def squeeze!(del=nil)
    return nil if del == ""
    pattern =
      if del
        SqueezePatternCache[del] ||= /([#{_regex_quote(del)}])\1+/
      else
        /(.|\n)\1+/
      end
    self.gsub!(pattern, '\1')
  end
Register or log in to add new notes.