alphabetize Util public methods
This commit is contained in:
1 parent
1b63dc7503
commit
b41a368da1
2 files changed
+45
-45
No files matched your search
+19
-19
@@ -26,25 +26,6 @@ module Rscons
|
||||
command.map { |c| c =~ /\s/ ? "'#{c}'" : c }.join(' ')
|
||||
end
|
||||
|
||||
# Make a relative path corresponding to a possibly absolute one.
|
||||
#
|
||||
# @param path [String]
|
||||
# Input path that is possibly absolute.
|
||||
#
|
||||
# @return [String]
|
||||
# Relative path.
|
||||
def make_relative_path(path)
|
||||
if absolute_path?(path)
|
||||
if path =~ %r{^(\w):(.*)$}
|
||||
"_#{$1}#{$2}"
|
||||
else
|
||||
"_#{path}"
|
||||
end
|
||||
else
|
||||
path
|
||||
end
|
||||
end
|
||||
|
||||
# Look for an executable.
|
||||
#
|
||||
# @return [String, nil]
|
||||
@@ -64,6 +45,25 @@ module Rscons
|
||||
end
|
||||
end
|
||||
|
||||
# Make a relative path corresponding to a possibly absolute one.
|
||||
#
|
||||
# @param path [String]
|
||||
# Input path that is possibly absolute.
|
||||
#
|
||||
# @return [String]
|
||||
# Relative path.
|
||||
def make_relative_path(path)
|
||||
if absolute_path?(path)
|
||||
if path =~ %r{^(\w):(.*)$}
|
||||
"_#{$1}#{$2}"
|
||||
else
|
||||
"_#{path}"
|
||||
end
|
||||
else
|
||||
path
|
||||
end
|
||||
end
|
||||
|
||||
# Parse dependencies from a Makefile.
|
||||
#
|
||||
# This method is used internally by Rscons builders.
|
||||
|
||||
Reference in new issue
Block a user