Class: Byebug::InfoCommand

Inherits:
Command
  • Object
show all
Includes:
Subcommands
Defined in:
lib/byebug/commands/info.rb,
lib/byebug/commands/info/file.rb,
lib/byebug/commands/info/line.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: BreakpointsCommand, DisplayCommand, FileCommand, LineCommand, ProgramCommand

Instance Attribute Summary

Attributes inherited from Command

#processor

Class Method Summary collapse

Methods included from Subcommands

#execute, included

Methods inherited from Command

#arguments, columnize, #context, #frame, help, #initialize, match, to_s

Methods included from Helpers::StringHelper

#camelize, #deindent, #prettify

Constructor Details

This class inherits a constructor from Byebug::Command

Class Method Details

.descriptionObject



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

def self.description
  <<-DESCRIPTION
    info[ subcommand]

    #{short_description}
  DESCRIPTION
end

.regexpObject



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

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

.short_descriptionObject



33
34
35
# File 'lib/byebug/commands/info.rb', line 33

def self.short_description
  "Shows several informations about the program being debugged"
end