Class: Zaid::Nodes::GetConstantNode
- Inherits:
-
Struct
- Object
- Struct
- Zaid::Nodes::GetConstantNode
- Defined in:
- lib/zaid/nodes/get_constant_node.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
5 6 7 |
# File 'lib/zaid/nodes/get_constant_node.rb', line 5 def name @name end |
Instance Method Details
#eval(_context) ⇒ Object
6 7 8 |
# File 'lib/zaid/nodes/get_constant_node.rb', line 6 def eval(_context) Constants[name] end |