Values & References16 / 16
Up next

Frozen string literals

# frozen_string_literal: true

# with this magic comment, literals are frozen
s = "hello"
puts s.frozen?
What you're solving

the magic comment