Class: Regexp
- Inherits:
-
Object
- Object
- Regexp
- Defined in:
- lib/client_side_validations/core_ext/regexp.rb
Instance Method Summary collapse
Instance Method Details
#as_json ⇒ Object
6 7 8 |
# File 'lib/client_side_validations/core_ext/regexp.rb', line 6 def as_json(*) JsRegex.new(self).to_h end |
#encode_json(_encoder) ⇒ Object
14 15 16 |
# File 'lib/client_side_validations/core_ext/regexp.rb', line 14 def encode_json(_encoder) inspect end |
#to_json(options = nil) ⇒ Object
10 11 12 |
# File 'lib/client_side_validations/core_ext/regexp.rb', line 10 def to_json( = nil) as_json() end |