Class: Pry

Inherits:
Object
  • Object
show all
Defined in:
lib/pry-moves/pry_ext.rb

Class Method Summary collapse

Class Method Details

.pry_moves_origin_startObject



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, options = {})
  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, options, 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, options)
  end
end