On Thu, Jul 03, 2003 at 08:24:37AM +0900, Osuka wrote:
> Now it all works and as a little exercise I turned it into a
> class(a bit of overkill but...gotta learn)

I don't think it's overkill at all. In Ruby it often makes sense to make a
class even for simple cases.

Your code will probably be clearer because the class will have its own <=>
compare method, so you can sort those objects in their preferred order
without having to write that magic compare block each time.

Cheers,

Brian.