Method: CommandKit::Commands::AutoLoad#command
- Defined in:
- lib/command_kit/commands/auto_load.rb
#command(name, constant, file, **kwargs) ⇒ Object
Defines an auto-loaded command mapping.
119 120 121 122 123 124 125 |
# File 'lib/command_kit/commands/auto_load.rb', line 119 def command(name, constant, file, **kwargs) @commands[name.to_s] = Subcommand.new( "#{@namespace}::#{constant}", join(file), **kwargs ) end |