diff options
| author | Jack Nagel | 2014-06-16 16:08:41 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-06-16 16:40:09 -0500 | 
| commit | 0da76ec35587314c27cdd3da4fea366918199ed8 (patch) | |
| tree | 9cb3df598b7bd4a3a5717e299dcf74f0ee2f3dc0 /Library/Homebrew/compilers.rb | |
| parent | 28341d8dc7bddc6091d169a59271f428f5202858 (diff) | |
| download | homebrew-0da76ec35587314c27cdd3da4fea366918199ed8.tar.bz2 | |
Place alias adjacent to aliased method
Diffstat (limited to 'Library/Homebrew/compilers.rb')
| -rw-r--r-- | Library/Homebrew/compilers.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 360395caf..2d10074e1 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -10,6 +10,10 @@ class CompilerFailure    attr_reader :compiler, :major_version    attr_rw :cause, :version +  # Allows Apple compiler `fails_with` statements to keep using `build` +  # even though `build` and `version` are the same internally +  alias_method :build, :version +    MESSAGES = {      :cxx11 => 'This compiler does not support C++11'    } @@ -60,10 +64,6 @@ class CompilerFailure        @version = @version.to_i      end    end - -  # Allows Apple compiler `fails_with` statements to keep using `build` -  # even though `build` and `value` are the same internally -  alias_method :build, :version  end  class CompilerQueue | 
