is the object frozen? : freeze « String « Ruby






is the object frozen?


greet = "Hello, myValue!"

greet.frozen? # => true

 








Related examples in the same category

1.Make a string immutable with Object's freeze method
2.Freeze a string
3.can't modify frozen string
4.rescue a Attempting-to-modify exception