Class: Byebug::DownCommand
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
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, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map, terminal_width
Class Method Details
.description ⇒ Object
211
212
213
|
# File 'lib/byebug/commands/frame.rb', line 211
def description
%{down[ count]\tmove to lower frame}
end
|
.names ⇒ Object
207
208
209
|
# File 'lib/byebug/commands/frame.rb', line 207
def names
%w(down)
end
|
Instance Method Details
#execute ⇒ Object
200
201
202
203
204
|
# File 'lib/byebug/commands/frame.rb', line 200
def execute
pos = get_int(@match[1], "Down")
return unless pos
adjust_frame(-pos, false)
end
|
#regexp ⇒ Object
196
197
198
|
# File 'lib/byebug/commands/frame.rb', line 196
def regexp
/^\s* down (?:\s+(\S+))? \s*$/x
end
|