Sha256: 45856efb5f5c050267b82dcf900b7757e8d59e84bbdfce5e007d264978144e12
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
require 'show_me_the_object' require 'binding_of_caller' module Kernel alias old_raise raise 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
show_me_the_object-0.1.0 | lib/show_me_the_object/kernel.rb |