Class: Progenitor::Factory
- Inherits:
-
Object
- Object
- Progenitor::Factory
- Defined in:
- lib/progenitor/factory.rb
Constant Summary collapse
- @@factories =
{}
Class Method Summary collapse
Class Method Details
.create(name, &block) ⇒ Object
12 13 14 |
# File 'lib/progenitor/factory.rb', line 12 def self.create(name, &block) @@factories[name] = block end |
.factories ⇒ Object
8 9 10 |
# File 'lib/progenitor/factory.rb', line 8 def self.factories @@factories end |