Ruby WeakRef: Hold Objects Without Keeping Them Alive
A normal reference keeps an object alive. A WeakRef points at an object without preventing garbage collection. When nothing else references that object, the GC...
Read Article