Description
Freezes Ruby objects recursively so nested values cannot be modified by accident. It is useful for constants, configuration, shared state, and tests that need immutability guarantees.
Deep freezing changes mutability expectations. Apply it intentionally, document shared objects, and test code paths that previously modified nested values.