Class: Spoom::Model::Mixin

Inherits:
Object
  • Object
show all
Extended by:
T::Helpers, T::Sig
Defined in:
lib/spoom/model/model.rb

Overview

A mixin (include, prepend, extend) to a namespace

Direct Known Subclasses

Extend, Include, Prepend

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



203
204
205
# File 'lib/spoom/model/model.rb', line 203

def name
  @name
end