A here document allows you to build strings from multiple lines on the flyA here document preserves newlines. A here document is formed with a << and a delimiting character or string of your choice. sonnet = <<29WIAAWFDWY29puts sonnet