Class: FuncallNode

Inherits:
Node
  • Object
show all
Defined in:
lib/WriteExcel/excelformulaparser.rb

Instance Method Summary collapse

Methods inherited from Node

#excelformulaparser_error, #exec_list

Constructor Details

#initialize(func, args) ⇒ FuncallNode

Returns a new instance of FuncallNode.



531
532
533
534
# File 'lib/WriteExcel/excelformulaparser.rb', line 531

def initialize(func, args)
   @func = func
   @args = args
end

Instance Method Details

#evaluateObject



536
537
538
539
540
541
542
# File 'lib/WriteExcel/excelformulaparser.rb', line 536

def evaluate
   arg = @args.collect {|i| i.evaluate }
   out = []
   arg.each { |i| o.push i }
   o.push @func
   p o
end