Answer Posted / Rewti Raman Singh
To freeze an object in Ruby, you use the Object#freeze method. Once frozen, the object cannot be modified, and attempts to modify it will result in a RuntimeError.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers