The Weak library provides a Weak::Set class to store an unordered list of objects and a Weak::Map class to store a key-value map. The collection classes only hold weak references to all elements so they can be garbage-collected when there are no more references left.
Required Ruby Version
>= 3.0.0
Authors
Holger Just
Versions
- 0.4.0 June 23, 2026 (33 KB)
- 0.3.1 January 16, 2026 (32.5 KB)
- 0.3.0 January 16, 2026 (32.5 KB)
- 0.2.1 December 27, 2025 (30.5 KB)
- 0.2.0 April 09, 2025 (30 KB)