set_userinfo(user, password = nil)
protected
protect setter for the user
component, and password
if available. (with validation)
see also URI::Generic.userinfo=
Show source
def set_userinfo(user, password = nil)
unless password
user, password = split_userinfo(user)
end
@user = user
@password = password if password
[@user, @password]
end