From: abc Date: 2009-03-02T20:05:08+09:00 Subject: Re: Delegating class methods I'm the OP. Thank you all for your replies. Sorry if the question wasn't clear enough. I wanted to register all the instances of a class, so the original idea was to use a hash class variable to do that. Of course there are a number of gotchas if you want to make the code concise using this approach, so an alternative solution is to declare another class, make it a Singleton and use it for that purpose. I'm not a seasoned Ruby programmer, but I think I was totally right in the idea of using class variables (@@hash). I cannot see why some people are surprised. I'd be very happy if somebody could shed some light on the issue, because maybe I'm missing something...