Class: Debugger::UpCommand
- 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
107 108 109 110 111 |
# File 'lib/ruby-debug/commands/frame.rb', line 107 def help(cmd) %{ up[count]\tmove to higher frame } end |
.help_command ⇒ Object
103 104 105 |
# File 'lib/ruby-debug/commands/frame.rb', line 103 def help_command 'up' end |
Instance Method Details
#execute ⇒ Object
92 93 94 95 96 97 98 99 100 |
# File 'lib/ruby-debug/commands/frame.rb', line 92 def execute unless @match[1] pos = 1 else pos = get_int(@match[1], "Up") return unless pos end adjust_frame(pos, false) end |
#regexp ⇒ Object
88 89 90 |
# File 'lib/ruby-debug/commands/frame.rb', line 88 def regexp /^\s* u(?:p)? (?:\s+(.*))? .*$/x end |