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.
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 |