class Byebug::Command
def subcommands
A subcommand is any class defined inside the parent's command class
Available subcommands for the current command
def subcommands const_list = constants(false).map { |const| const_get(const, false) } const_list.select { |c| c.is_a?(Class) } end