Class: Writeexcel::FuncallNode

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

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Node

#excelformulaparser_error, #exec_list

Constructor Details

#initialize(func, args) ⇒ FuncallNode


547
548
549
550
# File 'lib/writeexcel/excelformulaparser.rb', line 547

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

Instance Method Details

#evaluateObject


552
553
554
555
556
557
558
# File 'lib/writeexcel/excelformulaparser.rb', line 552

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