Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
URI::File#check_userinfo
(::String user) -> nil
check_userinfo(user)
lib/uri/file.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/uri/file.rb, line 72
def check_userinfo(user)
raise URI::InvalidURIError, "cannot set userinfo for file URI"
end
raise InvalidURIError
See also
#check_user
#set_host
#check_password
#set_password
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0