Class: Debugger::DownCommand
Overview
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, #find, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.help(cmd) ⇒ Object
210
211
212
213
214
|
# File 'lib/ruby-debug/commands/frame.rb', line 210
def help(cmd)
%{
down[count]\tmove to lower frame
}
end
|
.help_command ⇒ Object
206
207
208
|
# File 'lib/ruby-debug/commands/frame.rb', line 206
def help_command
'down'
end
|
Instance Method Details
#execute ⇒ Object
199
200
201
202
203
|
# File 'lib/ruby-debug/commands/frame.rb', line 199
def execute
pos = get_int(@match[1], "Down")
return unless pos
adjust_frame(-pos, false)
end
|
#regexp ⇒ Object
195
196
197
|
# File 'lib/ruby-debug/commands/frame.rb', line 195
def regexp
/^\s* down (?:\s+(.*))? .*$/x
end
|