Skip to content

Instantly share code, notes, and snippets.

@yaauie
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save yaauie/db6ff7e77861141bd68b to your computer and use it in GitHub Desktop.

Select an option

Save yaauie/db6ff7e77861141bd68b to your computer and use it in GitHub Desktop.
# encoding: utf-8
require 'pry'
module Kernel
alias_method :raise_without_pry, :raise
def raise_with_pry(*a, &b)
# `exit true` to continue *without* raising.
binding.pry || raise_without_pry(*a, &b)
end
alias_method :raise, :raise_with_pry
end
@yaauie

yaauie commented Jun 4, 2015

Copy link
Copy Markdown
Author

This was ill-conceived and did not work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment