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] * lib/delegate.rb (Delegator::marshal_load): need to call __setobj__. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1e8e90612a
commit
1f9981df2a
3 changed files with 27 additions and 12 deletions
|
@ -184,6 +184,7 @@ class Delegator
|
|||
# Reinitializes delegation from a serialized object.
|
||||
def marshal_load(obj)
|
||||
initialize_methods(obj)
|
||||
__setobj__(obj)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue