Class: Byebug::DisableCommand

Inherits:
Command
  • Object
show all
Includes:
Subcommands
Defined in:
lib/byebug/commands/disable.rb,
lib/byebug/commands/disable/display.rb,
lib/byebug/commands/disable/breakpoints.rb

Overview

Reopens the disable command to define the breakpoints subcommand

Defined Under Namespace

Classes: BreakpointsCommand, DisplayCommand

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



21
22
23
24
25
26
27
# File 'lib/byebug/commands/disable.rb', line 21

def self.description
  <<-DESCRIPTION
    dis[able][[ breakpoints| display)][ n1[ n2[ ...[ nn]]]]]

    #{short_description}
  DESCRIPTION
end

.regexpObject



17
18
19
# File 'lib/byebug/commands/disable.rb', line 17

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

.short_descriptionObject



29
30
31
# File 'lib/byebug/commands/disable.rb', line 29

def self.short_description
  "Disables breakpoints or displays"
end