github.com/nycdavid/zeus@v0.0.0-20201208104106-9ba439429e03/rubygem/lib/zeus/pry.rb (about) 1 begin 2 require "pry" 3 4 class Pry::Pager 5 def best_available 6 # Versions of Pry prior to 0.13 define `Pry::Pager#_pry_` 7 # while versions after that define `Pry::Pager#pry_instance` 8 pry = respond_to?(:pry_instance) ? pry_instance : _pry_ 9 # paging does not work in zeus so disable it 10 NullPager.new(pry.output) 11 end 12 end 13 14 rescue LoadError => e 15 # pry is not available, so no need to patch it 16 end