Class: Pry
- Inherits:
-
Object
- Object
- Pry
- Defined in:
- lib/pry-nav/pry_ext.rb
Class Method Summary collapse
Class Method Details
.start_with_pry_nav(target = TOPLEVEL_BINDING, options = {}) ⇒ Object Also known as: start
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pry-nav/pry_ext.rb', line 7 def start_with_pry_nav(target = TOPLEVEL_BINDING, = {}) = .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().run do start_without_pry_nav(target, ) end else # No need for the tracer unless we have a file context to step through start_without_pry_nav(target, ) end end |