From 8385dd2868e948cad0e5bdf6a6142fadd37c1294 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Wed, 3 Feb 2010 13:34:26 +0100 Subject: [PATCH] Env#[] --- lib/sbdb/weakhash.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sbdb/weakhash.rb b/lib/sbdb/weakhash.rb index d72dadb..03e53f1 100644 --- a/lib/sbdb/weakhash.rb +++ b/lib/sbdb/weakhash.rb @@ -35,6 +35,7 @@ class WeakHash ObjectSpace.define_finalizer(value, @reclaim_value) ObjectSpace.define_finalizer(key, @reclaim_key) + value end def [] key