Dave Thomas
1/13/2009 8:16:00 PM
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.