Class: Writeexcel::FuncallNode
- Defined in:
- lib/writeexcel/excelformulaparser.rb
Overview
:nodoc:
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(func, args) ⇒ FuncallNode
constructor
A new instance of FuncallNode.
Methods inherited from Node
#excelformulaparser_error, #exec_list
Constructor Details
#initialize(func, args) ⇒ FuncallNode
Returns a new instance of FuncallNode.
548 549 550 551 |
# File 'lib/writeexcel/excelformulaparser.rb', line 548 def initialize(func, args) @func = func @args = args end |
Instance Method Details
#evaluate ⇒ Object
553 554 555 556 557 558 |
# File 'lib/writeexcel/excelformulaparser.rb', line 553 def evaluate arg = @args.collect {|i| i.evaluate } arg.each { |i| o.push i } o.push @func p o end |