I'd rather not pollute the target object's class with a finalizer. However, I'm working on a class, FinalCall, that can hold the target object. When the FinalCall object is garbage collected, it calls a callback. If anybody wants to cont...Snappingturtle (Mike O'Sullivan)
`WeakRef#__getobj__` isn't documented in Ruby 2.5.1 (https://short.uno/wwb6bky) so I didn't know it existed. So I guess that's sort of a bug report right there. I think I might be able to write a class that does the callback on garbage ...Snappingturtle (Mike O'Sullivan)
I'd like to request two features for `WeakRef`. I'll explain what I want, then provide a real world use case. First, add the ability to pull the original object out of the `WeakRef` object, something like this: ```ruby myhash = {}...Snappingturtle (Mike O'Sullivan)