From: Ryan Davis Date: 2008-06-11T03:43:11+09:00 Subject: Re: accessing class variables from the outside (beginner question) On Jun 10, 2008, at 05:01 , Robert Dober wrote: > On Tue, Jun 10, 2008 at 9:16 AM, Ryan Davis ruby@zenspider.com> wrote: >> >> On Jun 9, 2008, at 22:15 , David A. Black wrote: >> >>> Class variables [...] in most cases aren't what you want to use >>> anyway. >> >> While probably true in this case, I think this statement is >> dangerously >> loaded... Your words have sway and affect design decisions. >> Sometimes class >> variables are exactly the right tool for the job: >> >> % find */dev/{lib,test} -name \*.rb | xargs grep -l @@ | wc -l >> 50 > > May I suggest to trust David more than grep ;). I do not know of any > usecase where class variables are the *right* thing to use, but I am > eager to learn, so please enlighten me. that is a grep on MY code... I trust my code more than I trust your trust. :P