From: Brian Candler Date: 2009-01-14T18:24:48+09:00 Subject: Re: Implementing each and <=> Ruby Rabbit wrote: > def <=>(other) > @list <=> other > end Perhaps you mean something like this: include Comparable def <=>(other) @list <=> other.list # or some other way to order them end Making your objects Comparable is distinct from making them Enumerable. -- Posted via http://www.ruby-forum.com/.