------ art_221866_827205380.1303431645999 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Try it again. This time put uncapitalized "C" class MyTest < Array ----- Original Message ----- From: "RichardOnRails" <RichardDummyMailbox58407 / USComputerGurus.com> To: "ruby-talk ML" <ruby-talk / ruby-lang.org> Sent: Thursday, April 21, 2011 6:50:35 AM Subject: Re: Using the spaceship operator On Apr 21, 12:13 am, RichardOnRails <RichardDummyMailbox58... / USComputerGurus.com> wrote: > Hi, > > Here an abstract version of my app, in which I have an array of two- > element arrays I'd like to sort on the second element of each pair > using the spaceship operator: > > $data [:A, 12], [:B, 30], [:C, 4] ] > > Class MyTest < Array > def <