Class: Termular::AST::Variable

Inherits:
Base
  • Object
show all
Defined in:
lib/termular/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Termular::AST::Base

Instance Attribute Details

#nameObject

Returns the value of attribute name.



33
34
35
# File 'lib/termular/parser.rb', line 33

def name
  @name
end

Instance Method Details

#eval(ctx) ⇒ Object



34
35
36
# File 'lib/termular/parser.rb', line 34

def eval(ctx)
  ctx[name]
end