Class: Melbourne::AST::SClassScope

Inherits:
ClosedScope show all
Defined in:
lib/melbourne/ast/definitions.rb

Overview

The scope a singleton class definition opens. This is the actual body of Melbourne::AST::SClasss

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, body) ⇒ SClassScope

Returns a new instance of SClassScope.



493
494
495
496
497
# File 'lib/melbourne/ast/definitions.rb', line 493

def initialize(line, body)
  @line = line
  @body = body
  @name = nil
end