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
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/frame.rb', line 84 def help(cmd) %{ up[count]\tmove to higher frame } end |
.help_command ⇒ Object
80 81 82 |
# File 'lib/ruby-debug/commands/frame.rb', line 80 def help_command 'up' end |
Instance Method Details
#execute ⇒ Object
69 70 71 72 73 74 75 76 77 |
# File 'lib/ruby-debug/commands/frame.rb', line 69 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
65 66 67 |
# File 'lib/ruby-debug/commands/frame.rb', line 65 def regexp /^\s* u(?:p)? (?:\s+(.*))? .*$/x end |