Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement