diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/weakref.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/weakref.rb b/lib/weakref.rb index dd2cee16aa..36cbe3f10f 100644 --- a/lib/weakref.rb +++ b/lib/weakref.rb @@ -101,7 +101,7 @@ class WeakRef < Delegator # Returns true if the referenced object is still alive. def weakref_alive? - !!(@@__map[self] or defined?(@delegate_sd_obj)) + @@__map.key?(self) or defined?(@delegate_sd_obj) end end |