Class: Regexp
- Defined in:
- lib/active_support/core_ext/regexp.rb,
lib/active_support/core_ext/object/json.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
125 126 127 |
# File 'lib/active_support/core_ext/object/json.rb', line 125 def as_json( = nil) #:nodoc: to_s end |
#match?(string, pos = 0) ⇒ Boolean
6 7 8 |
# File 'lib/active_support/core_ext/regexp.rb', line 6 def match?(string, pos = 0) !!match(string, pos) end |
#multiline? ⇒ Boolean
2 3 4 |
# File 'lib/active_support/core_ext/regexp.rb', line 2 def multiline? & MULTILINE == MULTILINE end |