Skip to content

Commit

Permalink
Implement <=> for Dependency
Browse files Browse the repository at this point in the history
Fixes Homebrew#11587.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
jacknagel committed Apr 11, 2012
1 parent c51463f commit 5545348
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Homebrew/dependencies.rb
Expand Up @@ -74,6 +74,10 @@ def ==(other_dep)
@name == other_dep.to_s
end

def <=>(other_dep)
@name <=> other_dep.to_s
end

def options
@tags.select{|p|p.start_with? '--'}
end
Expand Down

0 comments on commit 5545348

Please sign in to comment.