From 439a2f4fae2e5ddae40a808246f28b5b4e7961f6 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 25 May 2013 14:25:24 -0500 Subject: Dependency: use instanceof? in eql? This matches the eql? definition for requirements. --- Library/Homebrew/dependency.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew') 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 -- cgit v1.2.3