Module: Kernel
- Defined in:
- lib/show_me_the_object/kernel.rb
Instance Method Summary collapse
Instance Method Details
#old_raise ⇒ Object
5 |
# File 'lib/show_me_the_object/kernel.rb', line 5 alias old_raise raise |
#raise(*args, &block) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/show_me_the_object/kernel.rb', line 7 def raise(*args, &block) unless caller.first.include?(__FILE__) begin old_raise(*args) rescue Exception => e e.__raiser = binding.of_caller(1).eval('self') old_raise e end end end |