Module: Rodish::Plugins
- Defined in:
- lib/rodish/plugins.rb,
lib/rodish/plugins/is.rb,
lib/rodish/plugins/_wrap.rb,
lib/rodish/plugins/run_is.rb,
lib/rodish/plugins/usages.rb,
lib/rodish/plugins/help_order.rb,
lib/rodish/plugins/help_examples.rb,
lib/rodish/plugins/post_commands.rb,
lib/rodish/plugins/cache_help_output.rb,
lib/rodish/plugins/after_options_hook.rb,
lib/rodish/plugins/help_option_values.rb,
lib/rodish/plugins/skip_option_parsing.rb,
lib/rodish/plugins/invalid_args_message.rb,
lib/rodish/plugins/_context_sensitive_help.rb,
lib/rodish/plugins/wrapped_options_separator.rb
Overview
Namespace for Rodish plugins. Plugins do not have to be in this namespace, but this is what plugins that ship with Rodish use.
Defined Under Namespace
Modules: AfterOptionsHook, CacheHelpOutput, ContextSensitiveHelp_, HelpExamples, HelpOptionValues, HelpOrder, InvalidArgsMessage, Is, PostCommands, RunIs, SkipOptionParsing, Usages, Wrap_, WrappedOptionsSeparator
Class Method Summary collapse
-
.fetch(name) ⇒ Object
Load a Rodish plugin.
-
.register(name, mod) ⇒ Object
Register a Rodish plugin.
Class Method Details
.fetch(name) ⇒ Object
Load a Rodish plugin. name should be a symbol.
15 16 17 |
# File 'lib/rodish/plugins.rb', line 15 def self.fetch(name) MUTEX.synchronize{PLUGINS[name]} end |
.register(name, mod) ⇒ Object
Register a Rodish plugin. name should be a symbol, and mod should be a module.
21 22 23 |
# File 'lib/rodish/plugins.rb', line 21 def self.register(name, mod) MUTEX.synchronize{PLUGINS[name] = mod} end |