DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Ruby Hashes Example
This piece of code demonstrate <a href="http://programmingbulls.com/ruby-hash">ruby hash</a> iterating:
#!/usr/bin/ruby
address = {
"First name" => "First",
"Last name" => "Last",
}
address.each do |key, value|
puts key + " - " + value
end





