class TheFactory::ModuleBuilder
Public Class Methods
call(components_name)
click to toggle source
# File lib/the_factory/module_builder.rb, line 46 def self.call(components_name) new.tap do |mod| mod.extend Setup mod.extend TheFactory::DSL mod.components_name = components_name mod.component_name = inflector.singularize(components_name) mod.define_components_registry mod.define_component_adding_method mod.define_component_store_method mod.define_component_activation_method end end
inflector()
click to toggle source
# File lib/the_factory/module_builder.rb, line 42 def self.inflector TheFactory.inflector end