End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#freeze
pathname.freeze → obj
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_freeze(VALUE self)
{
rb_call_super(0, 0);
rb_str_freeze(get_strpath(self));
return self;
}
Freezes this Pathname.
See Object.freeze.