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

* lib/weakref.rb (WeakRef::__setobj__): should support

marshaling.  [ruby-talk:228508]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2006-12-07 15:17:14 +00:00
parent e03d9621a6
commit dc859c017d
3 changed files with 19 additions and 15 deletions

View file

@ -115,7 +115,7 @@
# implementation, see SimpleDelegator.
#
class Delegator
preserved = ["__id__", "object_id", "__send__", "__send", "__send!", "respond_to?", "send", "funcall"]
preserved = [:__id__, :object_id, :__send__, :__send, :__send!, :respond_to?, :send, :funcall]
instance_methods.each do |m|
next if preserved.include?(m)
undef_method m