End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#make_link
pathname.make_link(old)
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_make_link(VALUE self, VALUE old)
{
return rb_funcall(rb_cFile, id_link, 2, old, get_strpath(self));
}
Creates a hard link at pathname.
See File.link.