Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
URI::File#set_host
set_host(v)
lib/uri/file.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/uri/file.rb, line 62
def set_host(v)
v = "" if v.nil? || v == "localhost"
@host = v
end
Protected setter for the host component v.
See also URI::Generic.host=.
See also
#check_userinfo
#set_password
#check_user
#set_port
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0