aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dependency.rb
diff options
context:
space:
mode:
authorJack Nagel2013-05-25 14:25:24 -0500
committerJack Nagel2013-05-25 14:25:24 -0500
commit439a2f4fae2e5ddae40a808246f28b5b4e7961f6 (patch)
tree082bb5e52e360e29301d202071793230abe34633 /Library/Homebrew/dependency.rb
parenta75aff246e4f058e79b79563c93884b7fd7fa975 (diff)
downloadbrew-439a2f4fae2e5ddae40a808246f28b5b4e7961f6.tar.bz2
Dependency: use instanceof? in eql?
This matches the eql? definition for requirements.
Diffstat (limited to 'Library/Homebrew/dependency.rb')
-rw-r--r--Library/Homebrew/dependency.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb
index d87d74ccf..cc378b7df 100644
--- a/Library/Homebrew/dependency.rb
+++ b/Library/Homebrew/dependency.rb
@@ -20,7 +20,7 @@ class Dependency
end
def eql?(other)
- other.is_a?(self.class) && hash == other.hash
+ instance_of?(other.class) && hash == other.hash
end
def hash