class Bundler::URI::Generic
def set_userinfo(user, password = nil)
See also Bundler::URI::Generic.userinfo=.
(with validation).
Protected setter for the +user+ component, and +password+ if available
def set_userinfo(user, password = nil) unless password user, password = split_userinfo(user) end @user = user @password = password if password [@user, @password] end