Skip to content

Instantly share code, notes, and snippets.

@mapfel
Created April 20, 2013 16:35
Show Gist options
  • Save mapfel/5426544 to your computer and use it in GitHub Desktop.
Save mapfel/5426544 to your computer and use it in GitHub Desktop.
Ruby - day 2: iterate over hash
domains = { :de => "DEU", :no => "NOR", :us => "US" }
domains.each_pair { |k, v| puts "Key: #{k}, Value: #{v}" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment