From: Dave Thomas Date: 2001-04-07T01:56:05+09:00 Subject: [ruby-talk:13536] Re: List of all instances of a class Romuald Texier writes: > Is there a way to get a list of all instances of a class (and its > subclasses) without iterating over all objects ? If this is a class you've written, you could keep a collection in a class variable and add new instances to it in the initialize method. You might want to make these wear references though, or your objects won't be garbage collected. Dave