Class: Byebug::UpCommand

Inherits:
Command show all
Defined in:
lib/byebug/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, #print_subcmds, 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

.help(cmd) ⇒ Object



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

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

.help_commandObject



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

def help_command
  'up'
end

Instance Method Details

#executeObject



210
211
212
213
214
# File 'lib/byebug/commands/frame.rb', line 210

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

#regexpObject



206
207
208
# File 'lib/byebug/commands/frame.rb', line 206

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