instance method
URI::Generic#set_authority
set_authority(user, password, host, port = nil)
lib/uri/generic.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/uri/generic.rb, line 627
def set_authority(user, password, host, port = nil)
@user, @password, @host, @port = user, password, host, port || self.default_port
end
Protected setter for the authority info (user, password, host and port). If port is nil, default_port will be set.