user=(user)
public
Args
Description
public setter for the user component. (with validation)
see also URI::Generic.check_user
Usage
require 'uri'
uri = URI.parse("http://john:S3nsit1ve@my.example.com")
uri.user = "sam"
uri
Show source
def user=(user)
check_user(user)
set_user(user)
end