You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
puts <<GROCERY_LIST
|
|
|
|
Grocery list
|
|
|
|
------------
|
|
|
|
1. Salad mix.
|
|
|
|
2. Strawberries.*
|
|
|
|
3. Cereal.
|
|
|
|
4. Milk.*
|
|
|
|
|
|
|
|
* Organic
|
|
|
|
|
|
|
|
GROCERY_LIST
|
|
|
|
|
|
|
|
puts '
|
|
|
|
Categorized Grocery list
|
|
|
|
------------------------
|
|
|
|
'
|
|
|
|
|
|
|
|
puts 'Produce', '-------', <<PRODUCE, 'Dairy', '-----', <<DAIRY, '* Organic'
|
|
|
|
1. Strawberries*
|
|
|
|
2. Blueberries
|
|
|
|
|
|
|
|
PRODUCE
|
|
|
|
1. Yogurt
|
|
|
|
2. Milk*
|
|
|
|
3. Cottage Cheese
|
|
|
|
|
|
|
|
|
|
|
|
DAIRY
|
|
|
|
|
|
|
|
|
|
|
|
puts
|
|
|
|
puts 'Indented Grocery list',
|
|
|
|
'---------------------', <<-GROCERY_LIST
|
|
|
|
1. Salad mix.
|
|
|
|
2. Strawberries.
|
|
|
|
3. Cereal.
|
|
|
|
4. Milk.
|
|
|
|
GROCERY_LIST
|