From: Gavin Sinclair Date: 2007-01-14T16:55:06+09:00 Subject: Re: return_on On Jan 14, 1:34 am, "Trans" wrote: > > def x > return_on @cache[:x] > # do stuff > @cache[:x] = result_of_stuff > end > def x @cache[:x] ||= begin # do stuff end end Gavin