method

convert_to_uri

Importance_0
v2_6_3 - Show latest stable - 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 534
    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.