Module: Byebug::Subcommands::ClassMethods

Includes:
Helpers::ReflectionHelper
Defined in:
lib/byebug/subcommands.rb

Overview

Class methods added to subcommands

Instance Method Summary collapse

Methods included from Helpers::ReflectionHelper

#commands

Instance Method Details

#helpObject

Default help text for a command with subcommands



42
43
44
# File 'lib/byebug/subcommands.rb', line 42

def help
  super + subcommand_list.to_s
end

#subcommand_listObject

Command’s subcommands.



49
50
51
# File 'lib/byebug/subcommands.rb', line 49

def subcommand_list
  @subcommand_list ||= CommandList.new(commands)
end