Class: OperateNode
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(op, left, right) ⇒ OperateNode
constructor
A new instance of OperateNode.
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
#evaluate ⇒ Object
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 |