1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2006-02-20 00:33:18 +00:00
parent f816b8b167
commit 6fec28d1a2
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Mon Feb 20 09:17:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/delegate.rb (Delegator): should not delegate "funcall".
Mon Feb 20 09:13:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler):

View file

@ -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 {