Module: Industrialist::Manufacturable
- Defined in:
- lib/industrialist/manufacturable.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
6 7 8 |
# File 'lib/industrialist/manufacturable.rb', line 6 def self.extended(base) base.class_variable_set(:@@type, Type.industrialize(base)) end |
Instance Method Details
#corresponds_to(key) ⇒ Object
10 11 12 |
# File 'lib/industrialist/manufacturable.rb', line 10 def corresponds_to(key) Registrar.register(self.class_variable_get(:@@type), key, self) end |
#manufacturable_default ⇒ Object
14 15 16 |
# File 'lib/industrialist/manufacturable.rb', line 14 def manufacturable_default Registrar.register_default(self.class_variable_get(:@@type), self) end |