An ObjectSpace::WeakMap object holds references to any objects, but those objects can get garbage collected.

This class is mostly used internally by WeakRef, please use lib/weakref.rb for the public interface.

Instance Methods

Retrieves a weakly referenced object with the given key

Creates a weak reference from the given key to the given value

Iterates over keys and objects in a weakly referenced object

Iterates over keys and objects in a weakly referenced object

Iterates over keys and objects in a weakly referenced object

Returns true if key is registered

No documentation available

Iterates over keys and objects in a weakly referenced object

An alias for size

Returns the number of referenced objects

Iterates over values and objects in a weakly referenced object