Method: Regexp.json_create
- Defined in:
- lib/json/add/regexp.rb
.json_create(object) ⇒ Object
Deserializes JSON string by constructing new Regexp object with source s
(Regexp or String) and options o
serialized by to_json
11 12 13 |
# File 'lib/json/add/regexp.rb', line 11 def self.json_create(object) new(object['s'], object['o']) end |