Class: Extentions::Base::Factory
- Inherits:
-
Object
- Object
- Extentions::Base::Factory
- Defined in:
- lib/extentions/base/factory.rb
Instance Method Summary collapse
-
#initialize(adapter = nil) ⇒ Factory
constructor
A new instance of Factory.
- #role_for(model) ⇒ Object
Constructor Details
#initialize(adapter = nil) ⇒ Factory
Returns a new instance of Factory.
4 5 6 |
# File 'lib/extentions/base/factory.rb', line 4 def initialize(adapter = nil) @adapter = adapter end |
Instance Method Details
#role_for(model) ⇒ Object
8 9 10 |
# File 'lib/extentions/base/factory.rb', line 8 def role_for(model) raise NotImplementedError end |