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