module Industrialist::Manufacturable
Public Class Methods
extended(base)
click to toggle source
# File lib/industrialist/manufacturable.rb, line 6 def self.extended(base) base.class_variable_set(:@@type, Type.industrialize(base)) end
Public Instance Methods
corresponds_to(key)
click to toggle source
# File lib/industrialist/manufacturable.rb, line 10 def corresponds_to(key) Registrar.register(self.class_variable_get(:@@type), key, self) end
manufacturable_default()
click to toggle source
# File lib/industrialist/manufacturable.rb, line 14 def manufacturable_default Registrar.register_default(self.class_variable_get(:@@type), self) end