Class: Regexp

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



205
# File 'activesupport/lib/active_support/json/encoding.rb', line 205

def as_json(options = nil) to_s end

#multiline?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'activesupport/lib/active_support/core_ext/regexp.rb', line 2

def multiline?
  options & MULTILINE == MULTILINE
end