Class: Debugger::DownCommand
- Includes:
- FrameFunctions
- Defined in:
- lib/ruby-debug/commands/frame.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Command
Class Method Summary collapse
Instance Method Summary collapse
Methods included from FrameFunctions
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
111 112 113 114 115 |
# File 'lib/ruby-debug/commands/frame.rb', line 111 def help(cmd) %{ down[count]\tmove to lower frame } end |
.help_command ⇒ Object
107 108 109 |
# File 'lib/ruby-debug/commands/frame.rb', line 107 def help_command 'down' end |
Instance Method Details
#execute ⇒ Object
96 97 98 99 100 101 102 103 104 |
# File 'lib/ruby-debug/commands/frame.rb', line 96 def execute if not @match[1] pos = 1 else pos = get_int(@match[1], "Down") return unless pos end adjust_frame(-pos, false) end |
#regexp ⇒ Object
92 93 94 |
# File 'lib/ruby-debug/commands/frame.rb', line 92 def regexp /^\s* down (?:\s+(.*))? .*$/x end |