зеркало из https://github.com/github/ruby.git
* lib/uri/common.rb: Fix documentation of URI::Parser.new. Patch by
Steve Klabnik. [Ruby 1.9 - Bug #5177] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c233d6592d
Коммит
ee13ed7e84
|
@ -1,3 +1,8 @@
|
|||
Sat Aug 13 03:41:37 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/uri/common.rb: Fix documentation of URI::Parser.new. Patch by
|
||||
Steve Klabnik. [Ruby 1.9 - Bug #5177]
|
||||
|
||||
Sat Aug 13 02:19:57 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* ext/digest/digest.c: Add documentation for the Digest module. Patch
|
||||
|
|
|
@ -78,15 +78,15 @@ module URI
|
|||
#
|
||||
# You can use the following keys:
|
||||
#
|
||||
# * <tt>:ESCAPED</tt> (URI::PATTERN::ESCAPED in default)
|
||||
# * <tt>:UNRESERVED</tt> (URI::PATTERN::UNRESERVED in default)
|
||||
# * <tt>:DOMLABEL</tt> (URI::PATTERN::DOMLABEL in default)
|
||||
# * <tt>:TOPLABEL</tt> (URI::PATTERN::TOPLABEL in default)
|
||||
# * <tt>:HOSTNAME</tt> (URI::PATTERN::HOSTNAME in default)
|
||||
# * :ESCAPED (URI::PATTERN::ESCAPED in default)
|
||||
# * :UNRESERVED (URI::PATTERN::UNRESERVED in default)
|
||||
# * :DOMLABEL (URI::PATTERN::DOMLABEL in default)
|
||||
# * :TOPLABEL (URI::PATTERN::TOPLABEL in default)
|
||||
# * :HOSTNAME (URI::PATTERN::HOSTNAME in default)
|
||||
#
|
||||
# == Examples
|
||||
#
|
||||
# p = URI::Parser.new(:ESCPAED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
|
||||
# p = URI::Parser.new(:ESCAPED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
|
||||
# u = p.parse("http://example.jp/%uABCD") #=> #<URI::HTTP:0xb78cf4f8 URL:http://example.jp/%uABCD>
|
||||
# URI.parse(u.to_s) #=> raises URI::InvalidURIError
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче