Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # encoding: utf-8
  2. require 'pry'
  3.  
  4. module Kernel
  5. alias_method :raise_without_pry, :raise
  6. def raise_with_pry(*a, &b)
  7. # `exit true` to continue *without* raising.
  8. binding.pry || raise_without_pry(*a, &b)
  9. end
  10. alias_method :raise, :raise_with_pry
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement