diff options
-rw-r--r-- | lib/forwardable.rb | 2 | ||||
-rw-r--r-- | lib/forwardable/impl.rb | 8 |
2 files changed, 1 insertions, 9 deletions
@@ -222,7 +222,7 @@ module Forwardable #{pre} begin #{accessor} - end#{method_call}#{FILTER_EXCEPTION} end end end; @@ -1,13 +1,5 @@ # :stopdoc: module Forwardable - FILE_REGEXP = %r"#{Regexp.quote(File.dirname(__FILE__))}" - FILTER_EXCEPTION = <<-'END' - - rescue ::Exception - [email protected]_if {|s| ::Forwardable::FILE_REGEXP =~ s} unless ::Forwardable::debug - ::Kernel::raise - END - def self._valid_method?(method) catch {|tag| eval("BEGIN{throw tag}; ().#{method}", binding, __FILE__, __LINE__) |