Hice caja = [String.new("pan")]. Luego caja.freeze. Alguien me hace caja[0] << "za" y me encuentro "panza". Yo pensaba que ya nadie podía meter mano. Sigo sin entender cómo mierda funciona el congelador.
Which object do you try to change? Appending to the string inside your array changes that string. Appending another element to the frozen array changes the array. Those operations ask different objects.
If that one string should also be frozen, freeze that string. Pasting a recursive freezer you found on a coaster is a big change if other code still uses that same string.