From b1020bf03edfb370a01949d754e1e3061eac2b6f Mon Sep 17 00:00:00 2001 From: akira Date: Fri, 24 Jun 2005 04:18:16 +0000 Subject: * 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 --- lib/uri/generic.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lib/uri/generic.rb') diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 3253450046..51c2bf17f6 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -689,10 +689,10 @@ module URI # # require 'uri' # - # uri = URI.parse("http://my.rubysite.com") + # uri = URI.parse("http://my.example.com") # uri.merge!("/main.rbx?page=1") # p uri - # # => # + # # => # # def merge!(oth) t = merge(oth) @@ -718,9 +718,9 @@ module URI # # require 'uri' # - # uri = URI.parse("http://my.rubysite.com") + # uri = URI.parse("http://my.example.com") # p uri.merge("/main.rbx?page=1") - # # => # + # # => # # def merge(oth) begin @@ -904,8 +904,8 @@ module URI # # require 'uri' # - # uri = URI.parse('http://my.rubysite.com/main.rbx?page=1') - # p uri.route_from('http://my.rubysite.com') + # uri = URI.parse('http://my.example.com/main.rbx?page=1') + # p uri.route_from('http://my.example.com') # #=> # # def route_from(oth) @@ -944,8 +944,8 @@ module URI # # require 'uri' # - # uri = URI.parse('http://my.rubysite.com') - # p uri.route_to('http://my.rubysite.com/main.rbx?page=1') + # uri = URI.parse('http://my.example.com') + # p uri.route_to('http://my.example.com/main.rbx?page=1') # #=> # # def route_to(oth) @@ -1085,9 +1085,9 @@ module URI # # require 'uri' # - # uri = URI.parse('http://myuser:mypass@my.rubysite.com/test.rbx') + # uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx') # p uri.select(:userinfo, :host, :path) - # # => ["myuser:mypass", "my.rubysite.com", "/test.rbx"] + # # => ["myuser:mypass", "my.example.com", "/test.rbx"] # def select(*components) components.collect do |c| @@ -1101,7 +1101,7 @@ module URI end def inspect - sprintf("#<%s:0x%x URL:%s>", self.class.to_s, self.object_id, self.to_s) + sprintf("#<%s:%#0x URL:%s>", self.class.to_s, self.object_id, self.to_s) end def coerce(oth) -- cgit v1.2.3