Class: Debugger::DownCommand
Overview
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
#adjust_frame
Methods inherited from Command
commands, file_filter_supported?, #find, inherited, #initialize, load_commands, #match, method_missing, options, unescape_incoming
Class Method Details
.help(cmd) ⇒ Object
113
114
115
116
117
|
# File 'lib/ruby-debug-ide/commands/frame.rb', line 113
def help(cmd)
%{
down[count]\tmove to lower frame
}
end
|
.help_command ⇒ Object
109
110
111
|
# File 'lib/ruby-debug-ide/commands/frame.rb', line 109
def help_command
'down'
end
|
Instance Method Details
#execute ⇒ Object
98
99
100
101
102
103
104
105
106
|
# File 'lib/ruby-debug-ide/commands/frame.rb', line 98
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
94
95
96
|
# File 'lib/ruby-debug-ide/commands/frame.rb', line 94
def regexp
/^\s* down (?:\s+(.*))? .*$/x
end
|