Module: Rails3::PluginExtender::DSL

Includes:
LoadHandler
Defined in:
lib/plugin_toolbox/extender.rb

Constant Summary

Constants included from Util

Util::ACTIVE_MODULES, Util::INIT

Instance Method Summary collapse

Methods included from LoadHandler

#after, #before, #load_handling, #on_load

Methods included from Util

#act_type?, #get_base_class, #get_constant, #get_load_type, #get_module, #make_constant, #rails_const_base

Instance Method Details

#extend_from_module(base_name, *module_names) ⇒ Object



39
40
41
42
43
# File 'lib/plugin_toolbox/extender.rb', line 39

def extend_from_module base_name, *module_names
  module_names.each do |name|
    include get_constant(base_name, name)
  end
end

#extend_with(*module_names) ⇒ Object Also known as: with



45
46
47
48
49
# File 'lib/plugin_toolbox/extender.rb', line 45

def extend_with *module_names
  module_names.each do |name|         
    include name
  end
end