Class: Melbourne::AST::ConstAccess
- Defined in:
- lib/melbourne/ast/constants.rb
Overview
Access of a constant as in:
X::Y # (X is the accessed constant)
Instance Attribute Summary collapse
-
#name ⇒ Object
The name of the node.
-
#parent ⇒ Object
The parent node.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, parent, name) ⇒ ConstAccess
constructor
A new instance of ConstAccess.
Methods inherited from Node
Constructor Details
#initialize(line, parent, name) ⇒ ConstAccess
Returns a new instance of ConstAccess.
19 20 21 22 23 |
# File 'lib/melbourne/ast/constants.rb', line 19 def initialize(line, parent, name) @line = line @parent = parent @name = name end |
Instance Attribute Details
#name ⇒ Object
The name of the node
17 18 19 |
# File 'lib/melbourne/ast/constants.rb', line 17 def name @name end |
#parent ⇒ Object
The parent node
13 14 15 |
# File 'lib/melbourne/ast/constants.rb', line 13 def parent @parent end |