Module LittlePlugger::ClassMethods
In: lib/little-plugger.rb

Methods

Public Instance methods

Add the names to the list of plugins that will not be loaded. This list prevents the plugin system from loading unwanted or unneeded plugins.

If a plugin name appears in both the ‘disregard_plugin’ list and the ‘plugin’ list, the disregard list takes precedence; that is, the plugin will not be loaded.

disregard_plugins( *names )

Alias for disregard_plugin

Iterate over the loaded plugin classes and modules and call the initialize method for each plugin. The plugin‘s initialize method is defeind as initialize_plugin_name, where the plugin name is unique to each plugin.

Iterate through all installed gems looking for those that have the plugin_path in their "lib" folder, and load all .rb files found in the gem‘s plugin path. Each .rb file should define one class or module that will be used as a plugin.

Add the names to the list of plugins that will be loaded.

This module or class where plugins are located.

Returns the array of plugin names that will be loaded. If the array is empty, then any plugin found in the plugin_path will be loaded.

The path to search in a gem‘s ‘lib’ folder for plugins.

Loads the desired plugins and returns a hash. The hash contains all the plugin classes and modules keyed by the plugin name.

[Validate]