End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#exist?
exist?
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_exist_p(VALUE self)
{
return rb_funcall(rb_mFileTest, id_exist_p, 1, get_strpath(self));
}
See FileTest.exist?.
See also
#executable_real?
#expand_path
#executable?
#extname
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1