Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
is the object frozen? : freeze « String « Ruby
Ruby
String
freeze
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