Class: BigDecimal
- Inherits:
-
Object
- Object
- BigDecimal
- Defined in:
- lib/big_decimal.rb
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Object
:nodoc:.
Instance Method Details
#as_json(options = nil) ⇒ Object
:nodoc:
2 3 4 5 6 7 8 |
# File 'lib/big_decimal.rb', line 2 def as_json( = nil) #:nodoc: if finite? self.to_f else NilClass::AS_JSON end end |