Class: Byebug::DownCommand
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
219
220
221
|
# File 'lib/byebug/commands/frame.rb', line 219
def description
%{down[ count]\tmove to lower frame}
end
|
.names ⇒ Object
215
216
217
|
# File 'lib/byebug/commands/frame.rb', line 215
def names
%w(down)
end
|
Instance Method Details
#execute ⇒ Object
208
209
210
211
212
|
# File 'lib/byebug/commands/frame.rb', line 208
def execute
pos = get_int(@match[1], 'Down')
return unless pos
adjust_frame(-pos, false)
end
|
#regexp ⇒ Object
204
205
206
|
# File 'lib/byebug/commands/frame.rb', line 204
def regexp
/^\s* down (?:\s+(\S+))? \s*$/x
end
|