Module: Qonfig::Plugins
- Defined in:
- lib/qonfig/plugins.rb,
lib/qonfig/plugins/abstract.rb,
lib/qonfig/plugins/registry.rb,
lib/qonfig/plugins/access_mixin.rb
Overview
Defined Under Namespace
Modules: AccessMixin Classes: Abstract, Registry
Class Method Summary collapse
- .load(plugin_name) ⇒ void
- .names ⇒ Array<String>
- .register_plugin(plugin_name, plugin_module) ⇒ void private
Class Method Details
.load(plugin_name) ⇒ void
This method returns an undefined value.
18 19 20 |
# File 'lib/qonfig/plugins.rb', line 18 def load(plugin_name) thread_safe { plugin_registry[plugin_name].load! } end |
.names ⇒ Array<String>
26 27 28 |
# File 'lib/qonfig/plugins.rb', line 26 def names thread_safe { plugin_registry.names } end |
.register_plugin(plugin_name, plugin_module) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
35 36 37 |
# File 'lib/qonfig/plugins.rb', line 35 def register_plugin(plugin_name, plugin_module) thread_safe { plugin_registry[plugin_name] = plugin_module } end |