Skip to content
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

< RuntimeError 1 instance methods 1 class methods

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

Class methods 1

Instance methods 1