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

command_exists?, 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, terminal_width

Constructor Details

This class inherits a constructor from Byebug::Command

Class Method Details

.descriptionObject



189
190
191
# File 'lib/byebug/commands/frame.rb', line 189

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

.namesObject



185
186
187
# File 'lib/byebug/commands/frame.rb', line 185

def names
  %w(up)
end

Instance Method Details

#executeObject



178
179
180
181
182
# File 'lib/byebug/commands/frame.rb', line 178

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

#regexpObject



174
175
176
# File 'lib/byebug/commands/frame.rb', line 174

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