Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!feeder.news-service.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail From: 7stud -- Newsgroups: comp.lang.ruby Subject: Re: Using the spaceship operator Date: Thu, 21 Apr 2011 12:07:30 -0500 Organization: Service de news de lacave.net Lines: 12 Message-ID: References: <084e58ba-184f-470c-a341-68bfecc192a9@w36g2000vbi.googlegroups.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1303405673 68084 65.111.164.187 (21 Apr 2011 17:07:53 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Thu, 21 Apr 2011 17:07:53 +0000 (UTC) In-Reply-To: X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 382008 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:3321 Brian Candler wrote in post #994252: > > The point is that the <=> operator is applied to pairs of elements in > the array, not to the container object itself. > In other words, your spaceship operator only gets applied to objects of your class--not any ole' array. -- Posted via http://www.ruby-forum.com/.