coerce(oth)
  public
  
    
    
Args
Description
attempt to parse other URI +oth+
return [parsed_oth, self]
Usage
require 'uri'
uri = URI.parse("http://my.example.com")
uri.coerce("http://foo.com")
   
  
    Show source    
    
      
    def coerce(oth)
      case oth
      when String
        oth = parser.parse(oth)
      else
        super
      end
      return oth, self
    end