method

convert_to_uri

ruby latest stable - Class: URI::Parser

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

convert_to_uri(uri)
private

No documentation available.

# File lib/uri/common.rb, line 531
    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