set_userinfo(user, password = nil)
protected
Protected 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