Class: Byebug::DownCommand
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
command_exists?, commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width
Class Method Details
.description ⇒ Object
218
219
220
|
# File 'lib/byebug/commands/frame.rb', line 218
def description
%{down[ count]\tmove to lower frame}
end
|
.names ⇒ Object
214
215
216
|
# File 'lib/byebug/commands/frame.rb', line 214
def names
%w(down)
end
|
Instance Method Details
#execute ⇒ Object
207
208
209
210
211
|
# File 'lib/byebug/commands/frame.rb', line 207
def execute
pos = get_int(@match[1], "Down")
return unless pos
adjust_frame(-pos, false)
end
|
#regexp ⇒ Object
203
204
205
|
# File 'lib/byebug/commands/frame.rb', line 203
def regexp
/^\s* down (?:\s+(\S+))? \s*$/x
end
|