# frozen_string_literal: true # with this magic comment, literals are frozen s = "hello" puts s.frozen?
the magic comment