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, #prettify

Constructor Details

This class inherits a constructor from Byebug::Command

Class Method Details

.descriptionObject



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

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

    #{short_description}
   EOD
end

.regexpObject



15
16
17
# File 'lib/byebug/commands/disable.rb', line 15

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

.short_descriptionObject



27
28
29
# File 'lib/byebug/commands/disable.rb', line 27

def self.short_description
  'Disables breakpoints or displays'
end