Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/finrb/core_ext/numeric.rb

Overview

Legacy numeric convenience API, loaded only through finrb/core_ext.

Direct Known Subclasses

Flt::DecNum

Instance Method Summary collapse

Instance Method Details

#amortizeObject



9
10
11
# File 'lib/finrb/core_ext/numeric.rb', line 9

def amortize(...)
  Finrb::Amortization.new(self, ...)
end

#to_decObject



5
6
7
# File 'lib/finrb/core_ext/numeric.rb', line 5

def to_dec
  instance_of?(Flt::DecNum) ? self : Flt::DecNum(to_s)
end