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
#adjust_frame, #format_frame, #get_int
Methods inherited from Command
commands, inherited, #initialize, load_commands, #match, method_missing, options
Constructor Details
This class inherits a constructor from Debugger::Command
Class Method Details
.help(cmd) ⇒ Object
137 138 139 140 141 |
# File 'lib/ruby-debug/commands/frame.rb', line 137 def help(cmd) %{ down[count]\tmove to lower frame } end |
.help_command ⇒ Object
133 134 135 |
# File 'lib/ruby-debug/commands/frame.rb', line 133 def help_command 'down' end |
Instance Method Details
#execute ⇒ Object
122 123 124 125 126 127 128 129 130 |
# File 'lib/ruby-debug/commands/frame.rb', line 122 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
118 119 120 |
# File 'lib/ruby-debug/commands/frame.rb', line 118 def regexp /^\s* d(?!isp)(?:own)? (?:\s+(.*))? .*$/x end |