Class: Byebug::InfoCommand

Inherits:
Command
  • Object
show all
Includes:
Subcommands
Defined in:
lib/byebug/commands/info.rb,
lib/byebug/commands/info/args.rb,
lib/byebug/commands/info/file.rb,
lib/byebug/commands/info/line.rb,
lib/byebug/commands/info/catch.rb,
lib/byebug/commands/info/display.rb,
lib/byebug/commands/info/program.rb,
lib/byebug/commands/info/breakpoints.rb

Overview

Reopens the info command to define the breakpoints subcommand

Defined Under Namespace

Classes: ArgsSubcommand, BreakpointsSubcommand, CatchSubcommand, DisplaySubcommand, FileSubcommand, LineSubcommand, ProgramSubcommand

Instance Method Summary collapse

Methods included from Subcommands

#execute, #help, #short_description, #subcommands

Methods inherited from Command

#help, #initialize, #match, subcommands, to_name

Methods included from Helpers::StringHelper

#camelize, #prettify

Constructor Details

This class inherits a constructor from Byebug::Command

Instance Method Details

#descriptionObject



24
25
26
27
28
29
30
# File 'lib/byebug/commands/info.rb', line 24

def description
  <<-EOD
    info[ subcommand]

    Generic command for showing things about the program being debugged.
  EOD
end

#regexpObject



20
21
22
# File 'lib/byebug/commands/info.rb', line 20

def regexp
  /^\s* i(?:nfo)? (?:\s+ (.+))? \s*$/x
end