Class: Governor::PluginManager
- Inherits:
-
Object
- Object
- Governor::PluginManager
- Defined in:
- lib/governor/plugin_manager.rb
Constant Summary collapse
- @@plugins =
[]
Class Method Summary collapse
-
.register(*plugins) ⇒ Object
Registers the given plugins with Governor.
Class Method Details
.register(*plugins) ⇒ Object
Registers the given plugins with Governor. Usually called within the context of a single plugin, but any number of plugins can be registered.
Example:
comments = Governor::Plugin.new('comments')
Governor::PluginManager.register comments
17 18 19 |
# File 'lib/governor/plugin_manager.rb', line 17 def register(*plugins) @@plugins += plugins end |