Sha256: 29aec31b7d319917b7b7cb16614096cf34955c7dd33e49a1eecfc51fef3b9a4b

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

module Governor
  class PluginManager
    cattr_reader :plugins
    cattr_reader :view_hooks
    
    class << self
      @@plugins = []
      
      def register(*plugins)
        @@plugins += plugins
      end
      
      def resources(name)
        @@plugins.map{|p| p.resources[name] }.compact.reduce({}, :merge)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
governor-0.2.0 lib/governor/plugin_manager.rb