Class: Byebug::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, #print_subcmds, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.help(cmd) ⇒ Object
245
246
247
248
249
|
# File 'lib/byebug/commands/frame.rb', line 245
def help(cmd)
%{
down[count]\tmove to lower frame
}
end
|
.help_command ⇒ Object
241
242
243
|
# File 'lib/byebug/commands/frame.rb', line 241
def help_command
'down'
end
|
Instance Method Details
#execute ⇒ Object
234
235
236
237
238
|
# File 'lib/byebug/commands/frame.rb', line 234
def execute
pos = get_int(@match[1], "Down")
return unless pos
adjust_frame(-pos, false)
end
|
#regexp ⇒ Object
230
231
232
|
# File 'lib/byebug/commands/frame.rb', line 230
def regexp
/^\s* down (?:\s+(.*))? .*$/x
end
|