Class: Byebug::EnableCommand

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

Overview

Reopens the enable 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/enable.rb', line 21

def self.description
  <<-DESCRIPTION
    en[able][[ b[reakpoints]| d[isplay])][ n1[ n2[ ...[ nn]]]]]

    #{short_description}
  DESCRIPTION
end

.regexpObject



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

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

.short_descriptionObject



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

def self.short_description
  "Enables breakpoints or displays"
end