05 — Literals¶
What Ruby does with a string before your code touches it: whether the literal may be changed, and how much of a heredoc's indentation survives.
| Lesson | The one thing |
|---|---|
| String literals are chilled, not frozen | Ruby 3.4 and 4.0: a warning, not yet an error |
<<~ strips indentation — by a different rule than Perl's |
least-indented line, or closing word |