Create a gist now

Instantly share code, notes, and snippets.

quiet down pry when calling programtically
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment