From: Clifford Heath Date: 2007-02-15T12:35:05+09:00 Subject: Re: Initializing dynamic instance methods 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.