Class: Set
| Relationships & Source Files | |
| Inherits: | Object | 
| Defined in: | ext/json/lib/json/add/set.rb | 
Class Method Summary
- 
    
      .json_create(object)  
    
    Import a ::JSONMarshalled object.
Instance Method Summary
- 
    
      #as_json  
    
    Marshal the object to ::JSON.
- 
    
      #to_json(*args)  
    
    return the ::JSONvalue.
Class Method Details
.json_create(object)
[ GitHub ]# File 'ext/json/lib/json/add/set.rb', line 10
def self.json_create(object) new object['a'] end
Instance Method Details
#as_json
[ GitHub ]#to_json(*args)
return the ::JSON value
# File 'ext/json/lib/json/add/set.rb', line 25
def to_json(*args) as_json.to_json(*args) end