Class: Byebug::DownCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/byebug/commands/frame.rb

Constant Summary

Constants inherited from Command

Command::DEF_OPTIONS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

commands, help, 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 Byebug::Command

Class Method Details

.descriptionObject



232
233
234
235
236
# File 'lib/byebug/commands/frame.rb', line 232

def description
  %{
    down[ count]\tmove to lower frame
  }
end

.namesObject



228
229
230
# File 'lib/byebug/commands/frame.rb', line 228

def names
  %w(down)
end

Instance Method Details

#executeObject



221
222
223
224
225
# File 'lib/byebug/commands/frame.rb', line 221

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

#regexpObject



217
218
219
# File 'lib/byebug/commands/frame.rb', line 217

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