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, = {}) @pry = Pry.new(.merge(:target => target)) @history = [:history] @pry.inject_sticky_locals! reset_output end |