class
Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Superclass: RuntimeError

Raised when there is an attempt to modify a frozen object.

[1, 2, 3].freeze << 4

raises the exception:

FrozenError: can't modify frozen Array
Show files where this class is defined (1 file)
Register or log in to add new notes.