The Plugin class should be an object which provides the following methods:
These methods are expected by the Rails::Plugin::Locator and
Rails::Plugin::Loader classes. The default implementation returns the
lib directory as its load_paths, and evaluates init.rb
when load is called.
| Classes |
| FileSystemLocator |
The Rails::Plugin::FileSystemLocator will try to locate plugins by
examining the directories the the paths given in
configuration.plugin_paths. Any plugins that can be found are returned in a
list.
|
| Loader |
|
| 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.
|
<code/>and<pre/>for code samples.