End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
ENV.freeze
ENV.freeze
hash.c
View on GitHub ↗
static VALUE
env_freeze(VALUE self)
{
rb_raise(rb_eTypeError, "cannot freeze ENV");
UNREACHABLE_RETURN(self);
}
Raises an exception:
Example
ENV.freeze # Raises TypeError (cannot freeze ENV)