Skip to content

Instantly share code, notes, and snippets.

@ewhitebloom
Created February 20, 2014 22:49
Show Gist options
  • Save ewhitebloom/9124928 to your computer and use it in GitHub Desktop.
Save ewhitebloom/9124928 to your computer and use it in GitHub Desktop.
Game of Thrones Hash Practice
characters = {
"Tyrion Lannister" => "House Lannister",
"Jon Snow" => "Night's Watch",
"Hodor" => "House Stark",
"Stannis Baratheon" => "House Baratheon",
"Theon Greyjoy" => "House Greyjoy"
}
characters.each do |key,value|
puts key + " represents the " + value
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment