Place alias adjacent to aliased method
This commit is contained in:
parent
ff2d8fece3
commit
be1822dd72
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user