Method: Weak::Map#prune

Defined in:
lib/weak/map.rb

#pruneself

Cleanup data structures from the map to remove data associated with deleted or garbage collected keys and/or values. This method may be called automatically for some Weak::Map operations.

Returns:

  • (self)


# File 'lib/weak/map.rb', line 258