End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#to_s
pathname.to_s → string
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_to_s(VALUE self)
{
return rb_obj_dup(get_strpath(self));
}