Class: Regexp

Inherits:
Object show all
Defined in:
activesupport/lib/active_support/core_ext/regexp.rb,
activesupport/lib/active_support/core_ext/object/json.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



128
129
130
# File 'activesupport/lib/active_support/core_ext/object/json.rb', line 128

def as_json(options = nil) #:nodoc:
  to_s
end

#multiline?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'activesupport/lib/active_support/core_ext/regexp.rb', line 4

def multiline?
  options & MULTILINE == MULTILINE
end