Class: Spoom::Model::Mixin
- Inherits:
-
Object
- Object
- Spoom::Model::Mixin
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/spoom/model/model.rb
Overview
A mixin (include, prepend, extend) to a namespace
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Mixin
constructor
A new instance of Mixin.
Constructor Details
#initialize(name) ⇒ Mixin
Returns a new instance of Mixin.
206 207 208 |
# File 'lib/spoom/model/model.rb', line 206 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
203 204 205 |
# File 'lib/spoom/model/model.rb', line 203 def name @name end |