Class: Byebug::DownCommand
Overview
Move the current frame down in the backtrace.
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match
Class Method Details
.description ⇒ Object
230
231
232
|
# File 'lib/byebug/commands/frame.rb', line 230
def description
%(down[ count] Move to lower frame.)
end
|
.names ⇒ Object
226
227
228
|
# File 'lib/byebug/commands/frame.rb', line 226
def names
%w(down)
end
|
Instance Method Details
#execute ⇒ Object
218
219
220
221
222
223
|
# File 'lib/byebug/commands/frame.rb', line 218
def execute
pos, err = parse_steps(@match[1], 'Down')
return errmsg(err) unless pos
adjust_frame(-pos, false)
end
|
#regexp ⇒ Object
214
215
216
|
# File 'lib/byebug/commands/frame.rb', line 214
def regexp
/^\s* down (?:\s+(\S+))? \s*$/x
end
|