Class: Pry
- Inherits:
-
Object
- Object
- Pry
- Defined in:
- lib/pry-moves/pry_ext.rb
Class Method Summary collapse
Class Method Details
.pry_moves_origin_start ⇒ Object
2 |
# File 'lib/pry-moves/pry_ext.rb', line 2 alias pry_moves_origin_start start |
.start(target = TOPLEVEL_BINDING, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/pry-moves/pry_ext.rb', line 4 def start(target = TOPLEVEL_BINDING, = {}) if target.is_a?(Binding) && PryMoves.check_file_context(target) # Wrap the tracer around the usual Pry.start original_verbosity = $VERBOSE $VERBOSE = nil # Disable warnings for pry-moves PryMoves::PryWrapper.new(target, , self).run $VERBOSE = original_verbosity else # No need for the tracer unless we have a file context to step through pry_moves_origin_start(target, ) end end |