Class: Debugger::UpCommand
Overview
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, #find, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.help(cmd) ⇒ Object
215
216
217
218
219
|
# File 'lib/ruby-debug/commands/frame.rb', line 215
def help(cmd)
%{
up[count]\tmove to higher frame
}
end
|
.help_command ⇒ Object
211
212
213
|
# File 'lib/ruby-debug/commands/frame.rb', line 211
def help_command
'up'
end
|
Instance Method Details
#execute ⇒ Object
204
205
206
207
208
|
# File 'lib/ruby-debug/commands/frame.rb', line 204
def execute
pos = get_int(@match[1], "Up")
return unless pos
adjust_frame(pos, false)
end
|
#regexp ⇒ Object
200
201
202
|
# File 'lib/ruby-debug/commands/frame.rb', line 200
def regexp
/^\s* u(?:p)? (?:\s+(.*))?$/x
end
|