-
-
Save harrisi/a7a8ec19b24ee6187f6f55a24c4151d2 to your computer and use it in GitHub Desktop.
expression interpolation in heredoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts <<ENDDOC | |
\tCP[#{index + 1}]: #{case cp_info.tag | |
when CONSTANT_Class_info | |
"Class" | |
else | |
cp_info.tag | |
end | |
} | |
ENDDOC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment