Class: Melbourne::AST::ModuleScope

Inherits:
ClosedScope show all
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

#body

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

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