RosettaCodeData/Task/Here-document/Crystal/here-document.cr

7 lines
184 B
Crystal

puts <<-DOC
this is a heredoc
it preserves indents and newlines
the DOC identifier is completely arbitrary
it can be lowercase, a keyword, or even a number (but not a float)
DOC