method

convert_to_uri

Importance_0
v2_4_6 - Show latest stable - 0 notes - Class: RFC3986_Parser
convert_to_uri(uri) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/uri/rfc3986_parser.rb, line 113
    def convert_to_uri(uri)
      if uri.is_a?(URI::Generic)
        uri
      elsif uri = String.try_convert(uri)
        parse(uri)
      else
        raise ArgumentError,
          "bad argument (expected URI object or URI string)"
      end
    end
Register or log in to add new notes.