From 41a947e72aba3804c60a111e73e54d81150bbb6d Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Sun, 8 Jan 2023 17:14:44 -0600 Subject: [PATCH] [ruby/uri] [DOC] Enhanced RDoc for URI (https://github.com/ruby/uri/pull/55) https://github.com/ruby/uri/commit/89ab4f1407 --- lib/uri/common.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 21aa960974..dce09fbc1e 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -829,7 +829,15 @@ end # module URI module Kernel # - # Returns +uri+ converted to an URI object. + # Returns a \URI object derived from the given +uri+, + # which may be a \URI string or an existing \URI object: + # + # # Returns a new URI. + # uri = URI('http://github.com/ruby/ruby') + # # => # + # # Returns the given URI. + # URI(uri) + # # => # # def URI(uri) if uri.is_a?(URI::Generic)