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



40
41
42
# File 'lib/byebug/subcommands.rb', line 40

def help
  super + subcommand_list.to_s
end

#subcommand_listObject

Command’s subcommands.



47
48
49
# File 'lib/byebug/subcommands.rb', line 47

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