Class: JSON::GenericObject
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::OpenStruct
|
|
Instance Chain:
self,
::OpenStruct
|
|
Inherits: |
OpenStruct
|
Defined in: | ext/json/lib/json/generic_object.rb |
Class Attribute Summary
Class Method Summary
::OpenStruct - Inherited
Instance Method Summary
::OpenStruct - Inherited
Class Attribute Details
.json_creatable=(value) (rw)
[ GitHub ]# File 'ext/json/lib/json/generic_object.rb', line 13
attr_writer :json_creatable
.json_creatable? ⇒ Boolean
(rw)
[ GitHub ]
# File 'ext/json/lib/json/generic_object.rb', line 9
def json_creatable? @json_creatable end
Class Method Details
.[]
[ GitHub ]# File 'ext/json/lib/json/generic_object.rb', line 7
alias [] new
.dump(obj, *args)
[ GitHub ].from_hash(object)
[ GitHub ].json_create(data)
[ GitHub ].load(source, proc = nil, opts = {})
[ GitHub ]Instance Method Details
#as_json
[ GitHub ]#to_hash
[ GitHub ]# File 'ext/json/lib/json/generic_object.rb', line 47
def to_hash table end
#to_json(*a)
[ GitHub ]# File 'ext/json/lib/json/generic_object.rb', line 59
def to_json(*a) as_json.to_json(*a) end