diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-18 06:00:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-18 06:00:45 +0000 |
commit | 741ca76912fc71269dce5519a360f8c186e0530f (patch) | |
tree | e17dcbed96ca3425229edff91e0dd94d2b7d14b2 /lib/weakref.rb | |
parent | 448e63d627bf3653da0b3dc0dcf93e161829dc71 (diff) | |
download | ruby-741ca76912fc71269dce5519a360f8c186e0530f.tar.gz |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/weakref.rb')
-rw-r--r-- | lib/weakref.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/weakref.rb b/lib/weakref.rb index 3307a2e5aa..9e510d6f1c 100644 --- a/lib/weakref.rb +++ b/lib/weakref.rb @@ -43,8 +43,8 @@ class WeakRef<Delegator def initialize(orig) super @__id = orig.__id__ - ObjectSpace.define_finalizer orig, @@final - ObjectSpace.defin_finalizer self, @@final + ObjectSpace.define_finalizer orig, @@final + ObjectSpace.define_finalizer self, @@final ID_MAP[@__id] = [] unless ID_MAP[@__id] ID_MAP[@__id].push self.__id__ ID_REV_MAP[self.id] = @__id |