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