module TheFactory::ModuleBuilder::Setup

Public Class Methods

extended(receiver) click to toggle source
# File lib/the_factory/module_builder.rb, line 6
def self.extended(receiver)
  class << receiver
    attr_accessor :component_name, :components_name
  end
end

Public Instance Methods

__mf_activation_method_name__(title = component_name) click to toggle source
# File lib/the_factory/module_builder.rb, line 29
def __mf_activation_method_name__(title = component_name)
  :"__mf_activate_#{title}_component__"
end
__mf_component_class_reader__(title) click to toggle source
# File lib/the_factory/module_builder.rb, line 37
def __mf_component_class_reader__(title)
  :"#{title}_#{component_name}_class"
end
__mf_new_instance_method_name__(title) click to toggle source
# File lib/the_factory/module_builder.rb, line 33
def __mf_new_instance_method_name__(title)
  :"new_#{title}_#{component_name}_instance"
end
__mf_registry_method_name__(title = components_name) click to toggle source
# File lib/the_factory/module_builder.rb, line 21
def __mf_registry_method_name__(title = components_name)
  :"mf_#{title}"
end
__mf_store_method_name__(title = component_name) click to toggle source
# File lib/the_factory/module_builder.rb, line 25
def __mf_store_method_name__(title = component_name)
  :"__mf_store_#{title}_class__"
end
extended(receiver) click to toggle source
# File lib/the_factory/module_builder.rb, line 16
def extended(receiver)
  receiver.extend TheFactory::DecorationHelpers
  receiver.extend TheFactory::InheritanceHelpers
end
included(receiver) click to toggle source
# File lib/the_factory/module_builder.rb, line 12
def included(receiver)
  receiver.extend self
end