Method: PryTester#initialize

Defined in:
lib/pry_tester.rb

#initialize(target = TOPLEVEL_BINDING, options = {}) ⇒ PryTester

Returns a new instance of PryTester.



8
9
10
11
12
13
14
# File 'lib/pry_tester.rb', line 8

def initialize(target = TOPLEVEL_BINDING, options = {})
  @pry = Pry.new(options.merge(:target => target))
  @history = options[:history]

  @pry.inject_sticky_locals!
  reset_output
end