diff options
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 |