Last active
December 24, 2015 09:29
-
-
Save BandanaKM/6777972 to your computer and use it in GitHub Desktop.
Creating Hashes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
movies_hash = { | |
:horror => ['The Shining', 'Nightmare on Elm Street', 'People Under the stairs'] | |
:comedy => ['Waterboy', 'Zoolander', 'Napolean Dynamite'] | |
:romance => ['Titanic', 'Casablance', 'Pretty Woman'] } | |
recipes_hash = { | |
:dal => ['ginger', 'garlic', 'onions', 'mung beans', 'water', 'green pepper', 'salt', 'olive oil', 'garam masala', 'tumeric'] | |
:basmati_rice => ['basmati_rice', 'olive oil', 'peas', 'cumin', 'salt'] | |
:raita => ['lowfat plain yogurt', 'red pepper', 'cumin', 'salt', 'shredded cucumber'] | |
} | |
user_profile = { | |
:mickey => [ 'user profile', [favorite_colors = [green, blue, purple]], [essays = ['essay_1', 'essay_2', 'essay_3']]] | |
:mini => [ 'user profile', [favorite_colors = [black, white, grey]], [essays = ['essay_1', 'essay_2', 'essay_3']]] | |
:daffy => ['user profile', [favorite_colors = [red, orange, yellow]], [essays = ['essay_1', 'essay_2', 'essay_3']]] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating hashes homework