Class: Melbourne::AST::ClassScope
- Inherits:
-
ClosedScope
- Object
- Node
- ClosedScope
- Melbourne::AST::ClassScope
- Defined in:
- lib/melbourne/ast/definitions.rb
Overview
The scope a class definition opens. This is the actual body of Melbourne::AST::Classes
Instance Attribute Summary
Attributes inherited from ClosedScope
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name, body) ⇒ ClassScope
constructor
A new instance of ClassScope.
Methods inherited from Node
Constructor Details
#initialize(line, name, body) ⇒ ClassScope
335 336 337 338 339 |
# File 'lib/melbourne/ast/definitions.rb', line 335 def initialize(line, name, body) @line = line @name = name.name @body = body end |