Module: TableSync::Plugins
- Defined in:
- lib/table_sync/plugins.rb
Overview
Defined Under Namespace
Modules: AccessMixin Classes: Abstract, Registry
Class Method Summary collapse
- .load(plugin_name) ⇒ void
- .loaded_plugins ⇒ Array<String>
- .names ⇒ Array<String>
- .register_plugin(plugin_name, plugin_module) ⇒ void private
Class Method Details
.load(plugin_name) ⇒ void
This method returns an undefined value.
21 22 23 |
# File 'lib/table_sync/plugins.rb', line 21 def load(plugin_name) thread_safe { plugin_registry[plugin_name].load! } end |
.loaded_plugins ⇒ Array<String>
29 30 31 |
# File 'lib/table_sync/plugins.rb', line 29 def loaded_plugins thread_safe { plugin_registry.loaded.keys } end |
.names ⇒ Array<String>
37 38 39 |
# File 'lib/table_sync/plugins.rb', line 37 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.
46 47 48 |
# File 'lib/table_sync/plugins.rb', line 46 def register_plugin(plugin_name, plugin_module) thread_safe { plugin_registry[plugin_name] = plugin_module } end |