summaryrefslogtreecommitdiff
path: root/lib/uri/generic.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uri/generic.rb')
-rw-r--r--lib/uri/generic.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb
index b7a4cf6..1bc90cb 100644
--- a/lib/uri/generic.rb
+++ b/lib/uri/generic.rb
@@ -1100,8 +1100,9 @@ module URI
end
end
+ @@to_s = Kernel.instance_method(:to_s)
def inspect
- sprintf("#<%s:%#0x URL:%s>", self.class.to_s, self.object_id, self.to_s)
+ @@to_s.bind(self).call.sub!(/>\z/) {" URL:#{self}>"}
end
def coerce(oth)