Class: StoreNode
Instance Attribute Summary
Attributes inherited from UnaryNode
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(subTree) ⇒ StoreNode
constructor
A new instance of StoreNode.
Constructor Details
#initialize(subTree) ⇒ StoreNode
Returns a new instance of StoreNode.
87 88 89 |
# File 'lib/ast.rb', line 87 def initialize(subTree) super(subTree) end |
Instance Method Details
#evaluate ⇒ Object
91 92 93 |
# File 'lib/ast.rb', line 91 def evaluate() $calc.memory = @subTree.evaluate() end |