Class: LlamarNode
- Inherits:
-
Object
- Object
- LlamarNode
- Defined in:
- lib/ast.rb
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(var) ⇒ LlamarNode
constructor
A new instance of LlamarNode.
Constructor Details
#initialize(var) ⇒ LlamarNode
Returns a new instance of LlamarNode.
142 143 144 |
# File 'lib/ast.rb', line 142 def initialize(var) @var = var end |
Instance Method Details
#evaluate ⇒ Object
146 147 148 |
# File 'lib/ast.rb', line 146 def evaluate $calc.llamar(@var) end |