Method: Regexp#to_json
- Defined in:
- lib/json/add/regexp.rb
#to_json ⇒ Object
Stores class name (Regexp) with options o
and source s
(Regexp or String) as JSON string
27 28 29 |
# File 'lib/json/add/regexp.rb', line 27 def to_json(*) as_json.to_json end |