Module: Byebug::Subcommands
- Extended by:
- Forwardable
- Included in:
- DisableCommand, EnableCommand, InfoCommand, ThreadCommand, VarCommand
- Defined in:
- lib/byebug/subcommands.rb
Overview
Subcommand additions.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#execute ⇒ Object
Delegates to subcommands or prints help if no subcommand specified.
Class Method Details
.included(command) ⇒ Object
13 14 15 |
# File 'lib/byebug/subcommands.rb', line 13 def self.included(command) command.extend(ClassMethods) end |
Instance Method Details
#execute ⇒ Object
Delegates to subcommands or prints help if no subcommand specified.
23 24 25 26 27 28 29 30 31 |
# File 'lib/byebug/subcommands.rb', line 23 def execute subcmd_name = @match[1] return puts(help) unless subcmd_name subcmd = subcommand_list.match(subcmd_name) raise CommandNotFound.new(subcmd_name, self.class) unless subcmd subcmd.new(processor, arguments).execute end |