Last active
August 29, 2015 14:22
-
-
Save yaauie/db6ff7e77861141bd68b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was ill-conceived and did not work as expected.