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
Returns the value of attribute children.
-
#mixins ⇒ Object
readonly
Returns the value of attribute mixins.
Attributes inherited from SymbolDef
Instance Method Summary collapse
-
#initialize(symbol, owner:, location:) ⇒ Namespace
constructor
A new instance of Namespace.
Methods inherited from SymbolDef
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
#children ⇒ Object (readonly)
Returns the value of attribute children.
101 102 103 |
# File 'lib/spoom/model/model.rb', line 101 def children @children end |
#mixins ⇒ Object (readonly)
Returns the value of attribute mixins.
104 105 106 |
# File 'lib/spoom/model/model.rb', line 104 def mixins @mixins end |