aboutsummaryrefslogtreecommitdiffstats
path: root/lib/uri/common.rb
diff options
context:
space:
mode:
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])