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.
# File lib/rails/plugin/locator.rb, line 23 def each(&block) plugins.each(&block) end
# File lib/rails/plugin/locator.rb, line 27 def plugin_names plugins.map(&:name) end
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
Generated with the Darkfish Rdoc Generator 2.