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 12
attr_writer :json_creatable
.json_creatable? ⇒ Boolean
(rw)
[ GitHub ]
# File 'ext/json/lib/json/generic_object.rb', line 8
def json_creatable? @json_creatable end
Class Method Details
.[]
[ GitHub ]# File 'ext/json/lib/json/generic_object.rb', line 6
alias [] new
.dump(obj, *args)
[ GitHub ].from_hash(object)
[ GitHub ].json_create(data)
[ GitHub ].load(source, proc = nil, opts = {})
[ GitHub ]Instance Method Details
#[](name)
[ GitHub ]# File 'ext/json/lib/json/generic_object.rb', line 50
def [](name) table[name.to_sym] end
#[]=(name, value)
[ GitHub ]# File 'ext/json/lib/json/generic_object.rb', line 54
def []=(name, value) __send__ "#{name}=", value end
#as_json
[ GitHub ]#to_hash
[ GitHub ]# File 'ext/json/lib/json/generic_object.rb', line 46
def to_hash table end
#to_json(*a)
[ GitHub ]# File 'ext/json/lib/json/generic_object.rb', line 66
def to_json(*a) as_json.to_json(*a) end