Sha256: 1e23973aadeda09786890aa0997fc39d23e4d7bb2efb15a5bb853e0b66e3ab70

Contents?: true

Size: 509 Bytes

Versions: 13

Compression:

Stored size: 509 Bytes

Contents

require 'pry-byebug/helpers/navigation'

module PryByebug
  #
  # Run until the end of current frame
  #
  class FinishCommand < Pry::ClassCommand
    include PryByebug::Helpers::Navigation

    match 'finish'
    group 'Byebug'
    description 'Execute until current stack frame returns.'

    banner <<-BANNER
      Usage: finish
    BANNER

    def process
      PryByebug.check_file_context(target)

      breakout_navigation :finish
    end
  end
end

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

Version data entries

13 entries across 12 versions & 3 rubygems

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