summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-20 00:33:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-20 00:33:18 +0000
commit6fec28d1a2bf752325814c31de62ace73c5a9b3c (patch)
tree44e6f7e0fd45f46c74b98cf4242d43decf2d9270 /lib
parentf816b8b167ae60d266172d9eb6544990cbc228b7 (diff)
* lib/delegate.rb (Delegator): should not delegate "funcall".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/delegate.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 3be335580b..e8a731ae00 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -115,7 +115,7 @@
# implementation, see SimpleDelegator.
#
class Delegator
- preserved = ["__id__", "object_id", "__send__", "respond_to?"]
+ preserved = ["__id__", "object_id", "__send__", "respond_to?", "send", "funcall"]
instance_methods.each do |m|
next if preserved.include?(m)
undef_method m
@@ -262,8 +262,8 @@ def DelegateClass(superclass)
klass = Class.new
methods = superclass.public_instance_methods(true)
methods -= [
- "__id__", "object_id", "__send__", "respond_to?", "==", "equal?",
- "initialize", "method_missing", "__getobj__", "__setobj__",
+ "__id__", "object_id", "__send__", "respond_to?", "send", "funcall",
+ "==", "equal?", "initialize", "method_missing", "__getobj__", "__setobj__",
"clone", "dup", "marshal_dump", "marshal_load",
]
klass.module_eval {