Permalink
Browse files

Implement <=> for Dependency

Fixes #11587.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent c51463f commit 5545348a33d44c7eba452912bd9cd89c1c112134 @jacknagel jacknagel committed Apr 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Library/Homebrew/dependencies.rb
@@ -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

0 comments on commit 5545348

Please sign in to comment.