Class: Writeexcel::OperateNode

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


576
577
578
579
580
# File 'lib/writeexcel/excelformulaparser.rb', line 576

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

Instance Method Details

#evaluateObject


582
583
584
585
586
587
588
# File 'lib/writeexcel/excelformulaparser.rb', line 582

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