Parent

Included Modules

Class/Module Index [+]

Quicksearch

Rails::Plugin::Locator

The Plugin::Locator class should be subclasses to provide custom plugin-finding abilities to Rails (i.e. loading plugins from Gems, etc). Each subclass should implement the located_plugins method, which return an array of Plugin objects that have been found.

Attributes

initializer[R]

Public Class Methods

new(initializer) click to toggle source
# File lib/rails/plugin/locator.rb, line 12
def initialize(initializer)
  @initializer = initializer
end

Public Instance Methods

each(&block) click to toggle source
# File lib/rails/plugin/locator.rb, line 23
def each(&block)
  plugins.each(&block)
end
plugin_names() click to toggle source
# File lib/rails/plugin/locator.rb, line 27
def plugin_names
  plugins.map(&:name)
end
plugins() click to toggle source

This method should return all the plugins which this Plugin::Locator can find These will then be used by the current Plugin::Loader, which is responsible for actually loading the plugins themselves

# File lib/rails/plugin/locator.rb, line 19
def plugins
  raise "The `plugins' method must be defined by concrete subclasses of #{self.class}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.