Class: Termular::AST::Variable
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Termular::AST::Base
Instance Attribute Details
#name ⇒ Object
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 |