Class: Debugger::DownCommand

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



239
240
241
242
243
# File 'lib/ruby-debug/commands/frame.rb', line 239

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

.help_commandObject



235
236
237
# File 'lib/ruby-debug/commands/frame.rb', line 235

def help_command
  'down'
end

Instance Method Details

#executeObject



228
229
230
231
232
# File 'lib/ruby-debug/commands/frame.rb', line 228

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

#regexpObject



224
225
226
# File 'lib/ruby-debug/commands/frame.rb', line 224

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