Class: Melbourne::AST::ModuleName

Inherits:
Node
  • Object
show all
Defined in:
lib/melbourne/ast/definitions.rb

Overview

The name of a module

Direct Known Subclasses

ScopedModuleName

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

Constructor Details

#initialize(line, name) ⇒ ModuleName

Returns a new instance of ModuleName.



431
432
433
434
# File 'lib/melbourne/ast/definitions.rb', line 431

def initialize(line, name)
  @line = line
  @name = name
end

Instance Attribute Details

#nameObject

The actual name of the module



429
430
431
# File 'lib/melbourne/ast/definitions.rb', line 429

def name
  @name
end