Maintenance Ruby 3.3 gets fixes, but no new features. 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.