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



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

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

    #{short_description}
  EOD
end

.regexpObject



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

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

.short_descriptionObject



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

def self.short_description
  'Enables breakpoints or displays'
end