Class: BigDecimal

Inherits:
Object
  • Object
show all
Defined in:
lib/big_decimal.rb

Instance Method Summary collapse

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(options = nil) #:nodoc:
  if finite?
    self.to_f
  else
    NilClass::AS_JSON
  end
end