Class: Regexp
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Object
:nodoc:.
-
#to_json(options = nil) ⇒ Object
:nodoc:.
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( = 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( = nil) #:nodoc: inspect end |