From: Ghislain Mary Date: 2005-06-07T07:03:22+09:00 Subject: Re: newbie read.scan (?) question Bruce D'Arcus a �crit : > OK, thanks! > > And now how do I then access the @@articles array? If before I had: > > list = Articles.new > > ... what would be the equivalent here? You can define the following: class Article def self.articles @@articles end end But in fact, as Brian said, this may not be a good idea to store the articles in the Article class. This depends on the fact whether you want to be able to store several groups of articles or only one. I hadn't think of it because of the way you asked it. I undestood that you were only handling one group of articles, but maybe that's not the case. However, it's a good situation to learn a little about class variables and class methods ;-) Ghislain