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?
gegroet,
Erik V.
It's in CVS. Thanks!
Chad Fowler
http://chadfowler.com
http://rubygems.rubyforge.org (over 20,000 gems served!)
···
On Sun, 19 Dec 2004 01:07:08 +0900, Erik Veenstra <pan@erikveen.dds.nl> 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?