method

convert_to_uri

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: RFC2396_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/rfc2396_parser.rb, line 532
    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.