diff options
author | akira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-24 04:18:16 +0000 |
---|---|---|
committer | akira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-24 04:18:16 +0000 |
commit | 1ee06ebecf3b3b96de788c8dedd3b0de3cb0be18 (patch) | |
tree | d6a7da0a5446f0b5464b5a61f59d1ccca2c5f578 /lib/uri/common.rb | |
parent | 79bf4435af72baac2281c980048543d87c288c1a (diff) |
* lib/uri/common.rb, lib/uri/generic.rb: fixed typo in documents and
replaced some existent domain name with "example.com".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri/common.rb')
-rw-r--r-- | lib/uri/common.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 882ba7ae95..ccf57bd93b 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -270,12 +270,12 @@ module URI # # require 'uri' # - # enc_uri = URI.escape("http://foobar.com/?a=\11\15") + # enc_uri = URI.escape("http://example.com/?a=\11\15") # p enc_uri - # # => "http://foobar.com/?a=%09%0D" + # # => "http://example.com/?a=%09%0D" # # p URI.unescape(enc_uri) - # # => "http://foobar.com/?a=\t\r" + # # => "http://example.com/?a=\t\r" # def escape(str, unsafe = UNSAFE) unless unsafe.kind_of?(Regexp) @@ -305,12 +305,12 @@ module URI # # require 'uri' # - # enc_uri = URI.escape("http://foobar.com/?a=\11\15") + # enc_uri = URI.escape("http://example.com/?a=\11\15") # p enc_uri - # # => "http://foobar.com/?a=%09%0D" + # # => "http://example.com/?a=%09%0D" # # p URI.unescape(enc_uri) - # # => "http://foobar.com/?a=\t\r" + # # => "http://example.com/?a=\t\r" # def unescape(str) str.gsub(ESCAPED) do @@ -509,8 +509,8 @@ module URI # # require 'uri' # - # p URI.join("http:/localhost/","main.rbx") - # # => #<URI::HTTP:0x2022ac02 URL:http:/localhost/main.php> + # p URI.join("http://localhost/","main.rbx") + # # => #<URI::HTTP:0x2022ac02 URL:http://localhost/main.rbx> # def self.join(*str) u = self.parse(str[0]) |