Class: Complex
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/json/lib/json/add/complex.rb |
Class Method Summary
Instance Method Summary
Class Method Details
.json_create(object)
[ GitHub ]# File 'ext/json/lib/json/add/complex.rb', line 7
def self.json_create(object) Complex(object['r'], object['i']) end
Instance Method Details
#as_json
[ GitHub ]#to_json
[ GitHub ]# File 'ext/json/lib/json/add/complex.rb', line 19
def to_json(*) as_json.to_json end