Method: Xirr::NewtonMethod::Function#initialize
- Defined in:
- lib/xirr/newton_method.rb
#initialize(transactions, function) ⇒ Function
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the Function with the Cashflow it will use as data source and the function to reduce it.
32 33 34 35 |
# File 'lib/xirr/newton_method.rb', line 32 def initialize(transactions, function) @transactions = transactions @function = function end |