Class: GuardarNode

Inherits:
Object
  • Object
show all
Defined in:
lib/ast.rb

Instance Method Summary collapse

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

#evaluateObject



135
136
137
138
# File 'lib/ast.rb', line 135

def evaluate
  $calc.guardar(@var,@val)
  return @val
end