Sha256: 605ccc10b3a3e388f631af60991fd50cc3cd0c618955e91fe5b9ed96adc6676e
Contents?: true
Size: 644 Bytes
Versions: 8
Compression:
Stored size: 644 Bytes
Contents
require 'pry' require 'pry-nav/tracer' class << Pry alias_method :start_without_pry_nav, :start def start_with_pry_nav(target = TOPLEVEL_BINDING, options = {}) old_options = options.reject { |k, _| k == :pry_remote } if target.is_a?(Binding) && PryNav.check_file_context(target) # Wrap the tracer around the usual Pry.start PryNav::Tracer.new(options).run do start_without_pry_nav(target, old_options) end else # No need for the tracer unless we have a file context to step through start_without_pry_nav(target, old_options) end end alias_method :start, :start_with_pry_nav end
Version data entries
8 entries across 8 versions & 3 rubygems