If you want to freeze strings in Ruby there are at least two ways to do this: 1) Adding the magic comment at the beginning of the file # frozen_string_literal: true 2) Calling .freeze on the string that you want to freeze a = "this is a frozen strin...
allaboutcoding.ghinda.com4 min readNo responses yet.