aboutsummaryrefslogtreecommitdiffstats
path: root/lib/uri/common.rb
diff options
context:
space:
mode:
authorakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-24 04:18:16 +0000
committerakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-24 04:18:16 +0000
commitb1020bf03edfb370a01949d754e1e3061eac2b6f (patch)
tree6a3b4a392a1ea0992b084124af0ce632093e2ab7 /lib/uri/common.rb
parentf07afe1cb55c1df88eb4ec228e4797d8c90fcd4d (diff)
downloadruby-b1020bf03edfb370a01949d754e1e3061eac2b6f.tar.gz
* 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/trunk@8658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri/common.rb')
-rw-r--r--lib/uri/common.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index d532d9abb6..2263fbddde 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])