Plain_text.rb
This content was produced by an LLM and could include errors.
This script demonstrates using a Ruby heredoc (<<~'EOL') to capture and assign a multi-line string literal. It stores the formatted text, "string\n", into the variable doc.
doc = <<~'EOL'
string
EOL
#=> "string\n"
Ruby 4.0.3