Class: Byebug::UpCommand
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
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
Class Method Details
.description ⇒ Object
147
148
149
|
# File 'lib/byebug/commands/frame.rb', line 147
def description
%{up[ count]\tmove to higher frame}
end
|
.names ⇒ Object
143
144
145
|
# File 'lib/byebug/commands/frame.rb', line 143
def names
%w(up)
end
|
Instance Method Details
#execute ⇒ Object
136
137
138
139
140
|
# File 'lib/byebug/commands/frame.rb', line 136
def execute
pos = get_int(@match[1], "Up")
return unless pos
adjust_frame(pos, false)
end
|
#regexp ⇒ Object
132
133
134
|
# File 'lib/byebug/commands/frame.rb', line 132
def regexp
/^\s* u(?:p)? (?:\s+(.*))?$/x
end
|