summaryrefslogtreecommitdiff
path: root/lib/weakref.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-15 06:13:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-07-15 06:13:08 +0000
commitc30c3bffe472ee999fc722f63dd1c1984db1d1ce (patch)
treefd5a1cd95ad875ce2768b09c88cecc155dba74b8 /lib/weakref.rb
parent35c6e6af5ba2c405a91dc6b9e4af833d0979ed22 (diff)
1.1b9_31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/weakref.rb')
-rw-r--r--lib/weakref.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/weakref.rb b/lib/weakref.rb
index 539bb93..c31e959 100644
--- a/lib/weakref.rb
+++ b/lib/weakref.rb
@@ -32,10 +32,10 @@ class WeakRef<Delegator
def initialize(orig)
super
- @__id = orig.id
+ @__id = orig.__id__
ObjectSpace.call_finalizer orig
ObjectSpace.call_finalizer self
- ID_MAP[@__id] = self.id
+ ID_MAP[@__id] = self.__id__
ID_REV_MAP[self.id] = @__id
end