diff options
| author | Markus Reiter | 2016-09-24 18:59:44 +0200 | 
|---|---|---|
| committer | Markus Reiter | 2016-09-25 00:22:53 +0200 | 
| commit | b987230ddf0d067324c2590bf0fd829ed0e85503 (patch) | |
| tree | 3d89e3ca400cf20ed938aef103d108a7fd55e0e7 /Library/Homebrew/compilers.rb | |
| parent | 817bc2746e594761911edd78f743a640f089494f (diff) | |
| download | brew-b987230ddf0d067324c2590bf0fd829ed0e85503.tar.bz2 | |
RuboCop: Style/CaseEquality
Diffstat (limited to 'Library/Homebrew/compilers.rb')
| -rw-r--r-- | Library/Homebrew/compilers.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 6330db283..7503f1d77 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -49,7 +49,7 @@ class CompilerFailure      instance_eval(&block) if block_given?    end -  def ===(compiler) +  def fails_with?(compiler)      name == compiler.name && version >= compiler.version    end @@ -127,7 +127,7 @@ class CompilerSelector    end    def fails_with?(compiler) -    failures.any? { |failure| failure === compiler } +    failures.any? { |failure| failure.fails_with?(compiler) }    end    def compiler_version(name) | 
