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