Class: Melbourne::AST::ConstName
- Defined in:
- lib/melbourne/ast/constants.rb
Overview
A constant’s name in a constant’s definition as in:
X = 42
Instance Attribute Summary collapse
-
#name ⇒ Object
The name of the node.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name) ⇒ ConstName
constructor
A new instance of ConstName.
Methods inherited from Node
Constructor Details
#initialize(line, name) ⇒ ConstName
Returns a new instance of ConstName.
119 120 121 122 |
# File 'lib/melbourne/ast/constants.rb', line 119 def initialize(line, name) @line = line @name = name end |
Instance Attribute Details
#name ⇒ Object
The name of the node
117 118 119 |
# File 'lib/melbourne/ast/constants.rb', line 117 def name @name end |