eql?(p1)
public
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.
Show source
static VALUE
path_eq(VALUE self, VALUE other)
{
if (!rb_obj_is_kind_of(other, rb_cPathname))
return Qfalse;
return rb_str_equal(get_strpath(self), get_strpath(other));
}