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
11 12 13 |
# File 'lib/byebug/subcommands.rb', line 11 def self.included(command) command.extend(ClassMethods) end |
Instance Method Details
#execute ⇒ Object
Delegates to subcommands or prints help if no subcommand specified.
21 22 23 24 25 26 27 28 29 |
# File 'lib/byebug/subcommands.rb', line 21 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 |