aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/regexp.rb
blob: 062d56822860df38d7f070e4bcec1c7034a2e873 (plain) (blame)
1
2
3
4
5
6
7
8
9
class Regexp #:nodoc:
  def multiline?
    options & MULTILINE == MULTILINE
  end

  def match?(string, pos=0)
    !!match(string, pos)
  end unless //.respond_to?(:match?)
end