From 0c523da706b381b3a72df46794cda75aacdcfc35 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 5 Nov 2013 16:02:26 -0600 Subject: Dependency: tighten equality check --- Library/Homebrew/dependency.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index d218adb69..df22eed90 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 -- cgit v1.2.3