Class: Z4ai::Func
- Inherits:
-
Object
- Object
- Z4ai::Func
- Defined in:
- lib/z4ai.rb
Overview
function calculator container.
Instance Method Summary collapse
- #for(h = {}) ⇒ Object
-
#initialize(f) ⇒ Func
constructor
A new instance of Func.
Constructor Details
#initialize(f) ⇒ Func
Returns a new instance of Func.
147 148 149 |
# File 'lib/z4ai.rb', line 147 def initialize f @f = Eqn::Calculator.new(f) end |
Instance Method Details
#for(h = {}) ⇒ Object
150 151 152 153 |
# File 'lib/z4ai.rb', line 150 def for h={} @f.set h @f.calc end |