[ruby/uri] Fix the mention to removed URI.escape/URI::Escape
This was removed by #9. https://github.com/ruby/uri/commit/fec924238f
This commit is contained in:
parent
d31c15d81f
commit
31bd669f67
@ -47,7 +47,7 @@ module URI
|
|||||||
# :path => '/ruby/src'})
|
# :path => '/ruby/src'})
|
||||||
# uri2.to_s # => "file://host.example.com/ruby/src"
|
# uri2.to_s # => "file://host.example.com/ruby/src"
|
||||||
#
|
#
|
||||||
# uri3 = URI::File.build({:path => URI::escape('/path/my file.txt')})
|
# uri3 = URI::File.build({:path => URI::RFC2396_PARSER.escape('/path/my file.txt')})
|
||||||
# uri3.to_s # => "file:///path/my%20file.txt"
|
# uri3.to_s # => "file:///path/my%20file.txt"
|
||||||
#
|
#
|
||||||
def self.build(args)
|
def self.build(args)
|
||||||
|
@ -73,7 +73,7 @@ module URI
|
|||||||
#
|
#
|
||||||
# At first, tries to create a new URI::Generic instance using
|
# At first, tries to create a new URI::Generic instance using
|
||||||
# URI::Generic::build. But, if exception URI::InvalidComponentError is raised,
|
# URI::Generic::build. But, if exception URI::InvalidComponentError is raised,
|
||||||
# then it does URI::Escape.escape all URI components and tries again.
|
# then it does URI::RFC2396_PARSER.escape all URI components and tries again.
|
||||||
#
|
#
|
||||||
def self.build2(args)
|
def self.build2(args)
|
||||||
begin
|
begin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user