instance method
Pathname#eql?
(untyped) -> bool
eql?(other)
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 234
def ==(other)
return false unless Pathname === other
other.path == @path
end
Alias of #==
Compare this pathname with other. The comparison is string-based. Be aware that two different paths (foo.txt and ./foo.txt) can refer to the same file.