Class: PlusNode
Instance Attribute Summary
Attributes inherited from UnaryNode
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(subTree) ⇒ PlusNode
constructor
A new instance of PlusNode.
Constructor Details
#initialize(subTree) ⇒ PlusNode
85 86 87 |
# File 'lib/ast.rb', line 85 def initialize(subTree) super(subTree) end |
Instance Method Details
#evaluate ⇒ Object
89 90 91 |
# File 'lib/ast.rb', line 89 def evaluate $calc.memory+=subTree.evaluate end |