public
Created

quiet down pry when calling programtically

  • Download Gist
pry.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13
 
require 'pry'
 
if defined?(Pry.config.hooks.delete_hook)
Pry.config.hooks.delete_hook(:before_session, :default)
end
if defined?(Pry::DEFAULT_HOOKS)
Pry::DEFAULT_HOOKS[:before_session] = proc{|*a|}
end
 
binding.pry

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.