Class: Spoom::Model::Namespace Abstract

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

Overview

This class is abstract.

A class or module

Direct Known Subclasses

Class, Module, SingletonClass

Instance Attribute Summary collapse

Attributes inherited from SymbolDef

#comments, #location, #owner, #symbol

Instance Method Summary collapse

Methods inherited from SymbolDef

#full_name, #name

Constructor Details

#initialize(symbol, owner:, location:, comments: []) ⇒ Namespace

: (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array) -> void



118
119
120
121
122
123
# File 'lib/spoom/model/model.rb', line 118

def initialize(symbol, owner:, location:, comments: [])
  super(symbol, owner: owner, location: location, comments: comments)

  @children = [] #: Array[SymbolDef]
  @mixins = [] #: Array[Mixin]
end

Instance Attribute Details

#childrenObject (readonly)

: Array



112
113
114
# File 'lib/spoom/model/model.rb', line 112

def children
  @children
end

#mixinsObject (readonly)

: Array



115
116
117
# File 'lib/spoom/model/model.rb', line 115

def mixins
  @mixins
end