Class: Debugger::UpCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/ruby-debug/commands/frame.rb

Overview

:nodoc:

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

Constructor Details

This class inherits a constructor from Debugger::Command

Class Method Details

.help(cmd) ⇒ Object



186
187
188
189
190
# File 'lib/ruby-debug/commands/frame.rb', line 186

def help(cmd)
  %{
    up[count]\tmove to higher frame
  }
end

.help_commandObject



182
183
184
# File 'lib/ruby-debug/commands/frame.rb', line 182

def help_command
  'up'
end

Instance Method Details

#executeObject



175
176
177
178
179
# File 'lib/ruby-debug/commands/frame.rb', line 175

def execute
  pos = get_int(@match[1], "Up")
  return unless pos
  adjust_frame(pos, false)
end

#regexpObject



171
172
173
# File 'lib/ruby-debug/commands/frame.rb', line 171

def regexp
  /^\s* u(?:p)? (?:\s+(.*))?$/x
end