Class: Spoom::Model::Namespace

Inherits:
SymbolDef show all
Defined in:
lib/spoom/model/model.rb

Overview

A class or module

Direct Known Subclasses

Class, Module, SingletonClass

Instance Attribute Summary collapse

Attributes inherited from SymbolDef

#location, #owner, #symbol

Instance Method Summary collapse

Methods inherited from SymbolDef

#full_name, #name

Constructor Details

#initialize(symbol, owner:, location:) ⇒ Namespace

Returns a new instance of Namespace.



107
108
109
110
111
112
# File 'lib/spoom/model/model.rb', line 107

def initialize(symbol, owner:, location:)
  super(symbol, owner: owner, location: location)

  @children = T.let([], T::Array[SymbolDef])
  @mixins = T.let([], T::Array[Mixin])
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



101
102
103
# File 'lib/spoom/model/model.rb', line 101

def children
  @children
end

#mixinsObject (readonly)

Returns the value of attribute mixins.



104
105
106
# File 'lib/spoom/model/model.rb', line 104

def mixins
  @mixins
end