aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dependency.rb
diff options
context:
space:
mode:
authorJack Nagel2013-11-05 16:02:26 -0600
committerJack Nagel2013-11-05 16:02:26 -0600
commit0c523da706b381b3a72df46794cda75aacdcfc35 (patch)
treece1e7f8df490eb2f5f5584626d988887e2c83785 /Library/Homebrew/dependency.rb
parent6c3ee52d14e54f5cb23438c3ec4a1b57a1e60e80 (diff)
downloadbrew-0c523da706b381b3a72df46794cda75aacdcfc35.tar.bz2
Dependency: tighten equality check
Diffstat (limited to 'Library/Homebrew/dependency.rb')
-rw-r--r--Library/Homebrew/dependency.rb5
1 files changed, 1 insertions, 4 deletions
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