File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class File < Generic
4747 # :path => '/ruby/src'})
4848 # uri2.to_s # => "file://host.example.com/ruby/src"
4949 #
50- # uri3 = URI::File.build({:path => URI::escape('/path/my file.txt')})
50+ # uri3 = URI::File.build({:path => URI::RFC2396_PARSER. escape('/path/my file.txt')})
5151 # uri3.to_s # => "file:///path/my%20file.txt"
5252 #
5353 def self . build ( args )
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def self.use_registry # :nodoc:
7373 #
7474 # At first, tries to create a new URI::Generic instance using
7575 # URI::Generic::build. But, if exception URI::InvalidComponentError is raised,
76- # then it does URI::Escape .escape all URI components and tries again.
76+ # then it does URI::RFC2396_PARSER .escape all URI components and tries again.
7777 #
7878 def self . build2 ( args )
7979 begin
You can’t perform that action at this time.
0 commit comments