Skip to content

Instantly share code, notes, and snippets.

@ahoward
Created January 12, 2012 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahoward/1597755 to your computer and use it in GitHub Desktop.
Save ahoward/1597755 to your computer and use it in GitHub Desktop.
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