Lines Matching refs:WeakRef
6 # A WeakRef may be used exactly like the object it references.
12 # foo = WeakRef.new(foo) # reassign foo with WeakRef instance
19 # With help from WeakRef, we can implement our own redimentary WeakHash class.
28 # super WeakRef.new(key), WeakRef.new(obj)
33 # Hash#store to create a new WeakRef object with +key+ and +obj+ parameters
37 # will get an ArgumentError because WeakRef cannot create a finalizer for a
58 # #=> WeakRef::RefError: Invalid Reference - probably recycled
62 # values. Also, when we tried to inspect our hash, we got a WeakRef::RefError,
65 class WeakRef < Delegator
112 foo = WeakRef.new(foo)