Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Pathname#rmdir
rmdir
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_rmdir(VALUE self)
{
return rb_funcall(rb_cDir, id_rmdir, 1, get_strpath(self));
}
Remove the referenced directory.
See Dir.rmdir.