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
47
47
# :path => '/ruby/src'})
48
48
# uri2.to_s # => "file://host.example.com/ruby/src"
49
49
#
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')})
51
51
# uri3.to_s # => "file:///path/my%20file.txt"
52
52
#
53
53
def self . build ( args )
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def self.use_registry # :nodoc:
73
73
#
74
74
# At first, tries to create a new URI::Generic instance using
75
75
# 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.
77
77
#
78
78
def self . build2 ( args )
79
79
begin
You can’t perform that action at this time.
0 commit comments