End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#readlink
readlink
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_readlink(VALUE self)
{
VALUE str;
str = rb_funcall(rb_cFile, id_readlink, 1, get_strpath(self));
return rb_class_new_instance(1, &str, rb_obj_class(self));
}
Read symbolic link.
See File.readlink.
See also
#readlines
#realdirpath
#readable_real?
#realpath
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0