Class: BigDecimal
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/json/lib/json/add/bigdecimal.rb |
Class Method Summary
-
.json_create(object)
Import a ::JSON Marshalled object.
Instance Method Summary
Class Method Details
.json_create(object)
[ GitHub ]# File 'ext/json/lib/json/add/bigdecimal.rb', line 10
def self.json_create(object) BigDecimal._load object['b'] end
Instance Method Details
#as_json
[ GitHub ]#to_json
return the ::JSON value
# File 'ext/json/lib/json/add/bigdecimal.rb', line 25
def to_json(*) as_json.to_json end