diff options
| author | Jack Nagel | 2013-05-25 14:25:24 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-05-25 14:25:24 -0500 | 
| commit | 439a2f4fae2e5ddae40a808246f28b5b4e7961f6 (patch) | |
| tree | 082bb5e52e360e29301d202071793230abe34633 /Library/Homebrew/dependency.rb | |
| parent | a75aff246e4f058e79b79563c93884b7fd7fa975 (diff) | |
| download | brew-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.rb | 2 | 
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 | 
