Class: Regexp

Inherits:
Object show all
Defined in:
lib/active_support/json/encoders/regexp.rb

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



6
7
8
# File 'lib/active_support/json/encoders/regexp.rb', line 6

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

#to_json(options = nil) ⇒ Object

:nodoc:



2
3
4
# File 'lib/active_support/json/encoders/regexp.rb', line 2

def to_json(options = nil) #:nodoc:
  inspect
end