From: John Lane Date: 2010-02-10T00:45:21+09:00 Subject: Re: Mixin module with class variables and class methods Brian Candler wrote: > Class variables are a pain, for exactly this sort of reason. Yes, I'm getting that feeling! My example test was just a simplified model to understand how it worked and, in the case of the example, I can see instance variables provide a solution. What I'm trying to do is end up with a module mixed into a number of classes that will each call a mixed-in class method to add values to a class variable that will be a hash. Other instance methods in the mixin will then make use of the information in the class variable hash. So I think I really need a class variable. -- Posted via http://www.ruby-forum.com/.