[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01977] Iterating over all instances of a class

From: "David Douthitt" <DDouthitt@...>
Date: 2000-03-17 16:15:57 UTC
List: ruby-talk #1977
I just KNOW this is related to "collection" somehow, or that there is a way to do this.  However, the way I do it now is to create an array of instances, but this creates some unwieldy *.find{ |i| .... } sequences and worse.  Can't I do a find over instances of a class?

I searched Class>Module>Object, as well as Enumeration and Array, but haven't found anything I think will work.  There were a few "instance_of" and so on, but they sounded like they required an instance.

I think what I'm looking for would also be a "Class Method" - is that right?


In This Thread

Prev Next