Class: Byebug::UpCommand
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
189
190
191
|
# File 'lib/byebug/commands/frame.rb', line 189
def description
%{up[ count]\tmove to higher frame}
end
|
.names ⇒ Object
185
186
187
|
# File 'lib/byebug/commands/frame.rb', line 185
def names
%w(up)
end
|
Instance Method Details
#execute ⇒ Object
178
179
180
181
182
|
# File 'lib/byebug/commands/frame.rb', line 178
def execute
pos = get_int(@match[1], "Up")
return unless pos
adjust_frame(pos, false)
end
|
#regexp ⇒ Object
174
175
176
|
# File 'lib/byebug/commands/frame.rb', line 174
def regexp
/^\s* u(?:p)? (?:\s+(\S+))? \s*$/x
end
|