From: Chad Fowler Date: 2004-12-19T09:17:19+09:00 Subject: Re: RubyGems, Dependency sort On Sun, 19 Dec 2004 01:07:08 +0900, Erik Veenstra wrote: > > I wanted to sort an array of dependencies of a gem. But there > was no "<=>". So I created one: > > module Gem > class Dependency > def <=>(other) > [@name] <=> [other.name] > end > end > end > > To be included in RubyGems? It's in CVS. Thanks! Chad Fowler http://chadfowler.com http://rubycentral.org http://rubygarden.org http://rubygems.rubyforge.org (over 20,000 gems served!)