Class: OperateNode

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(op, left, right) ⇒ OperateNode

Returns a new instance of OperateNode.



560
561
562
563
564
# File 'lib/WriteExcel/excelformulaparser.rb', line 560

def initialize(op, left, right)
   @op = op
   @left = left
   @right = right
end

Instance Method Details

#evaluateObject



566
567
568
569
570
571
572
# File 'lib/WriteExcel/excelformulaparser.rb', line 566

def evaluate
   o = []
   o.push @left
   o.push @right
   o.push @op
   p o
end