We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a491f9 commit 30212d3Copy full SHA for 30212d3
lib/uri/common.rb
@@ -889,13 +889,16 @@ module Kernel
889
# Returns a \URI object derived from the given +uri+,
890
# which may be a \URI string or an existing \URI object:
891
#
892
+ # require 'uri'
893
# # Returns a new URI.
894
# uri = URI('http://github.com/ruby/ruby')
895
# # => #<URI::HTTP http://github.com/ruby/ruby>
896
# # Returns the given URI.
897
# URI(uri)
898
899
900
+ # You must require 'uri' to use this method.
901
+ #
902
def URI(uri)
903
if uri.is_a?(URI::Generic)
904
uri
0 commit comments