Module | LittlePlugger::ClassMethods |
In: |
lib/little-plugger.rb
|
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.
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.
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.