Class: Melbourne::AST::ClassName
- Defined in:
- lib/melbourne/ast/definitions.rb
Overview
A class name as in:
class X; end
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
The actual name of the class.
-
#superclass ⇒ Object
TODO: document!.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name, superclass) ⇒ ClassName
constructor
A new instance of ClassName.
Methods inherited from Node
Constructor Details
#initialize(line, name, superclass) ⇒ ClassName
Returns a new instance of ClassName.
356 357 358 359 360 |
# File 'lib/melbourne/ast/definitions.rb', line 356 def initialize(line, name, superclass) @line = line @name = name @superclass = superclass end |
Instance Attribute Details
#name ⇒ Object
The actual name of the class
351 352 353 |
# File 'lib/melbourne/ast/definitions.rb', line 351 def name @name end |
#superclass ⇒ Object
TODO: document!
354 355 356 |
# File 'lib/melbourne/ast/definitions.rb', line 354 def superclass @superclass end |