method
user=
user=(user)
public
Args
v |
Description
public setter for the user component. (with validation)
see also URI::Generic.check_user
Usage
require 'uri' uri = URI.parse("http://john:[email protected]") uri.user = "sam" # => "sam" uri #=> #<URI::HTTP:0x00000000881d90 URL:http://sam:[email protected]>

