Class: SotreNode
Instance Attribute Summary
Attributes inherited from UnaryNode
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(sub) ⇒ SotreNode
constructor
A new instance of SotreNode.
Constructor Details
#initialize(sub) ⇒ SotreNode
Returns a new instance of SotreNode.
72 73 74 |
# File 'lib/ast.rb', line 72 def initialize(sub) super(sub) end |
Instance Method Details
#evaluate ⇒ Object
76 77 78 |
# File 'lib/ast.rb', line 76 def evaluate() $calc.memory = @SubTree.evaluate end |