Class: Melbourne::AST::DefineSingletonScope

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

Overview

The scope a singletion method definition opens. This is the actual body of Melbourne::AST::DefineSingletons

Instance Attribute Summary

Attributes inherited from Define

#arguments, #name

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, block) ⇒ DefineSingletonScope

Returns a new instance of DefineSingletonScope.



141
142
143
# File 'lib/melbourne/ast/definitions.rb', line 141

def initialize(line, name, block)
  super line, name, block
end