From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2010-06-03T03:15:10+09:00 Subject: Re: having a class method called only one time ? Josh Cheek wrote: > > This is basically the same as what other people have said, but uses begin > .. end to do the entire calculation in one method. Also, addresses that it > should only calculate once, across all instances. exactly what i wanted. > > ----- > > Also, the delightful Ruby Best Practices discusses lazy evaluation in > chapter 5. You can download a copy at http://rubybestpractices.com/ and if > you feel you got something worthwhile, you might consider purchasing it as > well :) for sure, after reading it quicly. > ----- > > And depending on where you are going with this, you could also consider > rake, which is built around tasks and dependencies, and won't execute a task > more than one time (per user invocation). for the time being my needs are more toward some IDE. -- � Les faiblesses des hommes font la force des femmes. � (Voltaire)