Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
URI::Generic#eql?
(::URI::Generic oth) -> bool
eql?(oth)
lib/uri/generic.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/uri/generic.rb, line 1425
def eql?(oth)
self.class == oth.class &&
parser == oth.parser &&
self.component_ary.eql?(oth.component_ary)
end
Compares with oth for Hash.
See also
#default_port
#escape_userpass
#decoded_user
#find_proxy
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0