Class: Debugger::BreakpointsCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/ruby-debug/commands/breakpoints.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Command

Command::DEF_OPTIONS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

commands, #find, inherited, #initialize, load_commands, #match, method_missing, options

Constructor Details

This class inherits a constructor from Debugger::Command

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Debugger::Command

Class Method Details

.help(cmd) ⇒ Object



84
85
86
87
88
# File 'lib/ruby-debug/commands/breakpoints.rb', line 84

def help(cmd)
  %{
    b[reak]\tlist breakpoints
  }
end

.help_commandObject



80
81
82
# File 'lib/ruby-debug/commands/breakpoints.rb', line 80

def help_command
  'break'
end

Instance Method Details

#executeObject



75
76
77
# File 'lib/ruby-debug/commands/breakpoints.rb', line 75

def execute
  print_breakpoints Debugger.breakpoints
end

#regexpObject



71
72
73
# File 'lib/ruby-debug/commands/breakpoints.rb', line 71

def regexp
  /^\s*b(?:reak)?$/
end