Parent

Files

BigDecimal

Public Class Methods

json_create(object) click to toggle source
   # File lib/json/add/bigdecimal.rb, line 7
7:   def self.json_create(object)
8:     BigDecimal._load object['b']
9:   end

Public Instance Methods

as_json(*) click to toggle source
    # File lib/json/add/bigdecimal.rb, line 11
11:   def as_json(*)
12:     {
13:       JSON.create_id => self.class.name,
14:       'b'            => _dump,
15:     }
16:   end
to_json(*) click to toggle source
    # File lib/json/add/bigdecimal.rb, line 18
18:   def to_json(*)
19:     as_json.to_json
20:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.