In ruby we have the concpet "heredoc" to handle multiple line strings


We can handle that with doublequotes
for example
x = "Grocery list
------------
    1. Salad mix.
    2. Strawberries.
    3. Cereal.
    4. Milk.
       "

puts x

OUTPUT:
Grocery list
------------
    1. Salad mix.
    2. Strawberries.
    3. Cereal.
    4. Milk.

Anyspecific reason to use heredoc concept

-- 
Posted via http://www.ruby-forum.com/.