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