getting silly with "here documents"

This commit is contained in:
Dan Buch 2011-01-03 13:57:29 -05:00
parent a333293919
commit 4fdc97001d

View File

@ -0,0 +1,23 @@
puts <<GROCERY_LIST
Grocery list
------------
1. Salad mix.
2. Strawberries.*
3. Cereal.
4. Milk.*
* Organic
GROCERY_LIST
puts 'Produce', '-------', <<PRODUCE, 'Dairy', '-----', <<DAIRY, '* Organic'
1. Strawberries*
2. Blueberries
PRODUCE
1. Yogurt
2. Milk*
3. Cottage Cheese
DAIRY