Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/finance/decimal.rb,
lib/finance/amortization.rb
Instance Method Summary collapse
Instance Method Details
#amortize(*rates, &block) ⇒ Object
193 194 195 |
# File 'lib/finance/amortization.rb', line 193 def amortize(*rates, &block) amortization = Amortization.new(self, *rates, &block) end |
#to_d ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/finance/decimal.rb', line 5 def to_d if self.instance_of? Flt::DecNum self else Flt::DecNum self.to_s end end |