Sha256: b7c54f7f976340dcc482e0c86e2880a4574c3d9054d489feb965dea12fe3a3ca

Contents?: true

Size: 517 Bytes

Versions: 7

Compression:

Stored size: 517 Bytes

Contents

module Governor
  class PluginManager
    cattr_reader :plugins
    
    class << self
      @@plugins = []
      
      # 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
      #
      def register(*plugins)
        @@plugins += plugins
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
governor-0.5.7 lib/governor/plugin_manager.rb
governor-0.5.6 lib/governor/plugin_manager.rb
governor-0.5.5 lib/governor/plugin_manager.rb
governor-0.5.4 lib/governor/plugin_manager.rb
governor-0.5.3 lib/governor/plugin_manager.rb
governor-0.5.2 lib/governor/plugin_manager.rb
governor-0.5.1 lib/governor/plugin_manager.rb