method
correct_for_windows_path
v2_4_6 -
Show latest stable
- Class:
Gem::RemoteFetcher
correct_for_windows_path(path)public
No documentation available.
# File lib/rubygems/remote_fetcher.rb, line 349
def correct_for_windows_path(path)
if path[0].chr == '/' && path[1].chr =~ /[a-z]/ && path[2].chr == ':'
path[1..-1]
else
path
end
end