Class: Z4ai::Func

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

Overview

function calculator container.

Instance Method Summary collapse

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