diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index d218adb692..df22eed902 100644 --- a/Library/Homebrew/dependency.rb +++ b/Library/Homebrew/dependency.rb @@ -17,12 +17,9 @@ class Dependency end def ==(other) - name == other.name - end - - def eql?(other) instance_of?(other.class) && name == other.name end + alias_method :eql?, :== def hash name.hash