Class: Byebug::DownCommand

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match

Constructor Details

This class inherits a constructor from Byebug::Command

Class Method Details

.descriptionObject



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

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

.namesObject



213
214
215
# File 'lib/byebug/commands/frame.rb', line 213

def names
  %w(down)
end

Instance Method Details

#executeObject



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

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

#regexpObject



202
203
204
# File 'lib/byebug/commands/frame.rb', line 202

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