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.
42 43 44 |
# File 'lib/ast.rb', line 42 def initialize(subTree) super(subTree) end |
Instance Method Details
#evaluate ⇒ Object
46 47 48 |
# File 'lib/ast.rb', line 46 def evaluate $calc.memory = subTree.evaluate end |