On this page
Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.3
FrozenError
Raised when there is an attempt to modify a frozen object.
Example
[1, 2, 3].freeze << 4
raises the exception:
FrozenError: can't modify frozen Array