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.



29
30
31
# File 'lib/termular/parser.rb', line 29

def name
  @name
end

Instance Method Details

#eval(ctx) ⇒ Object



30
31
32
# File 'lib/termular/parser.rb', line 30

def eval(ctx)
  ctx[name]
end