Class: Melbourne::AST::ClassScope

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

#body

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

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