Place alias adjacent to aliased method

This commit is contained in:
Jack Nagel 2014-06-16 16:08:41 -05:00
parent ff2d8fece3
commit be1822dd72

View File

@ -10,6 +10,10 @@ class CompilerFailure
attr_reader :compiler, :major_version attr_reader :compiler, :major_version
attr_rw :cause, :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 = { MESSAGES = {
:cxx11 => 'This compiler does not support C++11' :cxx11 => 'This compiler does not support C++11'
} }
@ -60,10 +64,6 @@ class CompilerFailure
@version = @version.to_i @version = @version.to_i
end end
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 end
class CompilerQueue class CompilerQueue