Class: Spoom::Model::Namespace
- Defined in:
- lib/spoom/model/model.rb
Overview
A class or module
Direct Known Subclasses
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
: Array.
-
#mixins ⇒ Object
readonly
: Array.
Attributes inherited from SymbolDef
#comments, #location, #owner, #symbol
Instance Method Summary collapse
-
#initialize(symbol, owner:, location:, comments: []) ⇒ Namespace
constructor
: (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array) -> void.
Methods inherited from SymbolDef
Constructor Details
#initialize(symbol, owner:, location:, comments: []) ⇒ Namespace
: (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array) -> void
122 123 124 125 126 127 |
# File 'lib/spoom/model/model.rb', line 122 def initialize(symbol, owner:, location:, comments: []) super(symbol, owner: owner, location: location, comments: comments) @children = T.let([], T::Array[SymbolDef]) @mixins = T.let([], T::Array[Mixin]) end |