Class: Byebug::UpCommand

Inherits:
Command 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, find, format_subcmd, format_subcmds, 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



208
209
210
# File 'lib/byebug/commands/frame.rb', line 208

def description
  %{up[ count]\tmove to higher frame}
end

.namesObject



204
205
206
# File 'lib/byebug/commands/frame.rb', line 204

def names
  %w(up)
end

Instance Method Details

#executeObject



197
198
199
200
201
# File 'lib/byebug/commands/frame.rb', line 197

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

#regexpObject



193
194
195
# File 'lib/byebug/commands/frame.rb', line 193

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