diff options
author | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-17 19:47:57 +0000 |
---|---|---|
committer | stomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-17 19:47:57 +0000 |
commit | 6a2b454b97f37385a3383bfb4b43af0440d6173e (patch) | |
tree | fe3b8eb983e3727d7dcb09cb3c300b13d2c0b30c /lib | |
parent | 5665092f1ade87967ede2d73c98bfde81400a49e (diff) |
lib/uri/file.rb: fix errors in docs for URI::File.build
* lib/uri/file.rb: [DOC] fix description and example for URI::File.build;
for file URIs the path component must be absolute, escaping of
absolute paths is only done for URI::FTP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uri/file.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/uri/file.rb b/lib/uri/file.rb index 03375dd2cc..ffdd4aaa02 100644 --- a/lib/uri/file.rb +++ b/lib/uri/file.rb @@ -33,9 +33,6 @@ module URI # If an Array is used, the components must be passed in the # order <code>[host, path]</code>. # - # If the path supplied is absolute, it will be escaped in order to - # make it absolute in the URI. - # # Examples: # # require 'uri' @@ -44,7 +41,7 @@ module URI # uri1.to_s # => "file://host.example.com/path/file.zip" # # uri2 = URI::File.build({:host => 'host.example.com', - # :path => 'ruby/src'}) + # :path => '/ruby/src'}) # uri2.to_s # => "file://host.example.com/ruby/src" # def self.build(args) |