From: Dave Thomas Date: 2009-01-14T05:15:59+09:00 Subject: Re: Implementing each and <=> On Jan 13, 2009, at 1:08 PM, Ruby Rabbit wrote: > I have a data model and would like to let it be Enumerable. I want to > confirm if this is the way of implementing each and <=> : > ... > def <=>(other) > @list <=> other > end <=> would normally apply to items in your list, not to the container itself.