Class: GuardarNode
- Inherits:
-
Object
- Object
- GuardarNode
- Defined in:
- lib/ast.rb
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(var, val) ⇒ GuardarNode
constructor
A new instance of GuardarNode.
Constructor Details
#initialize(var, val) ⇒ GuardarNode
Returns a new instance of GuardarNode.
130 131 132 133 |
# File 'lib/ast.rb', line 130 def initialize(var,val) @var = var @val = val end |
Instance Method Details
#evaluate ⇒ Object
135 136 137 138 |
# File 'lib/ast.rb', line 135 def evaluate $calc.guardar(@var,@val) return @val end |