On this page
End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class · Ruby 3.0
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