From be1822dd728b4ca3d6b3be528ae067de482810e4 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 16 Jun 2014 16:08:41 -0500 Subject: [PATCH] Place alias adjacent to aliased method --- Library/Homebrew/compilers.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 360395cafe..2d10074e10 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