Class: Melbourne::AST::ConstFind
- Defined in:
- lib/melbourne/ast/constants.rb
Overview
Access of a constant within some other code node (the constant has to be found then) as in
def method
String
end
Instance Attribute Summary collapse
-
#name ⇒ Object
The name of the node.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name) ⇒ ConstFind
constructor
A new instance of ConstFind.
Methods inherited from Node
Constructor Details
#initialize(line, name) ⇒ ConstFind
Returns a new instance of ConstFind.
69 70 71 72 |
# File 'lib/melbourne/ast/constants.rb', line 69 def initialize(line, name) @line = line @name = name end |
Instance Attribute Details
#name ⇒ Object
The name of the node
67 68 69 |
# File 'lib/melbourne/ast/constants.rb', line 67 def name @name end |