Class: RubyCoded::Commands::PluginProvider
- Inherits:
-
Object
- Object
- RubyCoded::Commands::PluginProvider
- Defined in:
- lib/ruby_coded/commands/plugin_provider.rb
Overview
Adapts plugin-registered commands to the unified command catalog.
Instance Method Summary collapse
- #definitions ⇒ Object
-
#initialize(registry:) ⇒ PluginProvider
constructor
A new instance of PluginProvider.
Constructor Details
#initialize(registry:) ⇒ PluginProvider
Returns a new instance of PluginProvider.
9 10 11 |
# File 'lib/ruby_coded/commands/plugin_provider.rb', line 9 def initialize(registry:) @registry = registry end |
Instance Method Details
#definitions ⇒ Object
13 14 15 |
# File 'lib/ruby_coded/commands/plugin_provider.rb', line 13 def definitions commands.map { |name, handler| build_definition(name, handler) } end |