summaryrefslogtreecommitdiff
path: root/lib/forwardable.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-23 22:29:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-23 22:29:14 +0000
commit4e1ee809bbf78dc7edb3350628bf80c3e0133fee ()
treedf5b96c7c9c458320915f08540af8341f4442953 /lib/forwardable.rb
parent92d5da521dc68fc166009ce5796748993375c5f5 (diff)
forwardable.rb: full qualify names
* lib/forwardable.rb (def_instance_delegator, def_single_delegator): match backtraces against ::Forwardable in case the target class is a subclass of BasicObject and does not include Kernel. [ruby-core:71176] [Bug #11616] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/forwardable.rb4
1 files changed, 2 insertions, 2 deletions
@@ -182,7 +182,7 @@ module Forwardable
begin
#{accessor}.__send__(:#{method}, *args, &block)
rescue ::Exception
- [email protected]_if{|s| Forwardable::FILE_REGEXP =~ s} unless Forwardable::debug
::Kernel::raise
end
end
@@ -274,7 +274,7 @@ module SingleForwardable
begin
#{accessor}.__send__(:#{method}, *args, &block)
rescue ::Exception
- [email protected]_if{|s| Forwardable::FILE_REGEXP =~ s} unless Forwardable::debug
::Kernel::raise
end
end