Sha256: adf7088fd0ea3085efb9e91b36a1fea994ed927487447222cca764104666b339

Contents?: true

Size: 424 Bytes

Versions: 6766

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

module PryByebug
  module Helpers
    #
    # Helpers to aid breaking out of the REPL loop
    #
    module Navigation
      #
      # Breaks out of the REPL loop and signals tracer
      #
      def breakout_navigation(action, options = {})
        pry_instance.binding_stack.clear

        throw :breakout_nav, action: action, options: options, pry: pry_instance
      end
    end
  end
end

Version data entries

6,766 entries across 6,763 versions & 28 rubygems

Version Path
passbase-1.0.2 vendor/bundle/ruby/2.7.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/navigation.rb
passbase-1.0.1 vendor/bundle/ruby/2.7.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/navigation.rb
passbase-1.0.0 vendor/bundle/ruby/2.7.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/navigation.rb
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/navigation.rb
talon_one-2.0.0 vendor/bundle/ruby/2.7.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/navigation.rb
pry-byebug-3.9.0 lib/pry-byebug/helpers/navigation.rb