Class: Melbourne::AST::ModuleScope
- Inherits:
-
ClosedScope
- Object
- Node
- ClosedScope
- Melbourne::AST::ModuleScope
- Defined in:
- lib/melbourne/ast/definitions.rb
Overview
The scope a module definition opens. This is the actual body of Melbourne::AST::Modules
Instance Attribute Summary
Attributes inherited from ClosedScope
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, name, body) ⇒ ModuleScope
constructor
A new instance of ModuleScope.
Methods inherited from Node
Constructor Details
#initialize(line, name, body) ⇒ ModuleScope
460 461 462 463 464 |
# File 'lib/melbourne/ast/definitions.rb', line 460 def initialize(line, name, body) @line = line @name = name.name @body = body end |