Sha256: f6f263a162372b150f9afd70218ee0281b22c43831208ea758cc55c4fabf139a

Contents?: true

Size: 623 Bytes

Versions: 13

Compression:

Stored size: 623 Bytes

Contents

require 'pry-byebug/helpers/navigation'

module PryByebug
  #
  # Travel up the frame stack
  #
  class UpCommand < Pry::ClassCommand
    include Helpers::Navigation

    match 'up'
    group 'Byebug'

    description 'Move current frame up.'

    banner <<-BANNER
      Usage: up [TIMES]

      Move current frame up. By default, moves by 1 frame.

      Examples:
        up   #=> Move up 1 frame.
        up 5 #=> Move up 5 frames.
    BANNER

    def process
      PryByebug.check_file_context(target)

      breakout_navigation :up, times: args.first
    end
  end
end

Pry::Commands.add_command(PryByebug::UpCommand)

Version data entries

13 entries across 12 versions & 3 rubygems

Version Path
pry-byebug-3.5.1 lib/pry-byebug/commands/up.rb
tdiary-5.0.6 vendor/bundle/gems/pry-byebug-3.5.0/lib/pry-byebug/commands/up.rb
pry-byebug-3.5.0 lib/pry-byebug/commands/up.rb
pry-byebug-3.4.3 lib/pry-byebug/commands/up.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/pry-byebug-3.4.2/lib/pry-byebug/commands/up.rb
tdiary-5.0.5 vendor/bundle/gems/pry-byebug-3.4.2/lib/pry-byebug/commands/up.rb
tdiary-5.0.4 vendor/bundle/gems/pry-byebug-3.4.2/lib/pry-byebug/commands/up.rb
pry-byebug-3.4.2 lib/pry-byebug/commands/up.rb
pry-byebug-3.4.1 lib/pry-byebug/commands/up.rb
pry-byebug-3.4.0 lib/pry-byebug/commands/up.rb
pry-byebug-3.3.0 lib/pry-byebug/commands/up.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/pry-byebug-3.2.0/lib/pry-byebug/commands/up.rb
pry-byebug-3.2.0 lib/pry-byebug/commands/up.rb