Class: GetLocalNode
- Inherits:
-
Struct
- Object
- Struct
- GetLocalNode
- Defined in:
- lib/turmali/nodes.rb,
lib/turmali/interpreter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
38 39 40 |
# File 'lib/turmali/nodes.rb', line 38 def name @name end |
Instance Method Details
#eval(context) ⇒ Object
65 66 67 |
# File 'lib/turmali/interpreter.rb', line 65 def eval(context) context.locals[name] end |