RubyGems, Dependency sort

Discussion in 'Ruby' started by Erik Veenstra, Dec 18, 2004.

  1. 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.
    Erik Veenstra, Dec 18, 2004
    #1
    1. Advertising

  2. Erik Veenstra

    Chad Fowler Guest

    Chad Fowler, Dec 19, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Navin
    Replies:
    1
    Views:
    659
    Ken Schaefer
    Sep 9, 2003
  2. Trevor
    Replies:
    5
    Views:
    546
    Bill Kelly
    Jan 29, 2005
  3. Erik Veenstra
    Replies:
    4
    Views:
    778
    Austin Ziegler
    Feb 4, 2005
  4. Jamis Buck

    Rubygems dependency bug?

    Jamis Buck, Jul 27, 2005, in forum: Ruby
    Replies:
    2
    Views:
    82
    Jamis Buck
    Jul 28, 2005
  5. Eric Roscher
    Replies:
    3
    Views:
    356
    Eric Roscher
    Nov 24, 2009
Loading...

Share This Page