Method: Pry::Testable::Evalable#pry_tester
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/testable/evalable.rb
#pry_tester(*args, &block) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/testable/evalable.rb', line 6 def pry_tester(*args, &block) args.unshift(Pry.toplevel_binding) if args.empty? || args[0].is_a?(Hash) Pry::Testable::PryTester.new(*args).tap do |t| t.singleton_class.class_eval(&block) if block end end |