Phrogz wrote:
> I dunno what your criteria is for 'best', but this fixes it:
>         module_eval("def foo(); @foo ||= nil; end")
> (Though that runs over values of false with nil.)

That's what I do also; just be careful however not to refer to the
instance variable *from within* the class; use the accessor method.