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.
39 lines
515 B
39 lines
515 B
14 years ago
|
puts <<GROCERY_LIST
|
||
|
Grocery list
|
||
|
------------
|
||
|
1. Salad mix.
|
||
|
2. Strawberries.*
|
||
|
3. Cereal.
|
||
|
4. Milk.*
|
||
|
|
||
|
* Organic
|
||
|
|
||
|
GROCERY_LIST
|
||
|
|
||
14 years ago
|
puts '
|
||
|
Categorized Grocery list
|
||
|
------------------------
|
||
|
'
|
||
14 years ago
|
|
||
|
puts 'Produce', '-------', <<PRODUCE, 'Dairy', '-----', <<DAIRY, '* Organic'
|
||
|
1. Strawberries*
|
||
|
2. Blueberries
|
||
|
|
||
|
PRODUCE
|
||
|
1. Yogurt
|
||
|
2. Milk*
|
||
|
3. Cottage Cheese
|
||
|
|
||
14 years ago
|
|
||
14 years ago
|
DAIRY
|
||
14 years ago
|
|
||
|
|
||
|
puts
|
||
|
puts 'Indented Grocery list',
|
||
|
'---------------------', <<-GROCERY_LIST
|
||
|
1. Salad mix.
|
||
|
2. Strawberries.
|
||
|
3. Cereal.
|
||
|
4. Milk.
|
||
|
GROCERY_LIST
|