Module: Pluggable
- Defined in:
- lib/pluggable.rb
Defined Under Namespace
Modules: ClassMethods
Classes: Plugin, PluginFactory, Plugins
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(klass) ⇒ Object
60
61
62
|
# File 'lib/pluggable.rb', line 60
def self.included(klass)
klass.extend ClassMethods
end
|
Instance Method Details
#install_plugins(*args) ⇒ Object
52
53
54
|
# File 'lib/pluggable.rb', line 52
def install_plugins(*args)
instance_variable_set :@pluggable_module_plugins, PluginFactory.instance.build_plugins(*args)
end
|
#plugins ⇒ Object
56
57
58
|
# File 'lib/pluggable.rb', line 56
def plugins
instance_variable_get :@pluggable_module_plugins
end
|