Class: Melbourne::AST::ConstFind

Inherits:
Node
  • Object
show all
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

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

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

#nameObject

The name of the node



67
68
69
# File 'lib/melbourne/ast/constants.rb', line 67

def name
  @name
end