When defining a singleton method, I want to refer to variables in the scope
outside the def. Is it possible to do something like the following?
@child = Object.new
s = self
s # Wrong. But how do I refer to the instance of C?
c = C.new
c == c.child.parent # Should be true.
Any hints? I think I’m missing a vital piece of magic here. Or maybe I’m
expecting too much Lisp-ness.