Skip to content

Commit

Permalink
Create Ruby Exercises #14
Browse files Browse the repository at this point in the history
  • Loading branch information
raspy8766 committed Sep 16, 2014
1 parent 18d4de7 commit 738e6fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Ruby Exercises #14
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
contact_data = ["[email protected]", "123 Main st.", "555-123-4567"]
contacts = {"Joe Smith" => {}}
fields = [:email, :address, :phone]

contacts.each do |name, hash|
fields.each do |field|
hash[field] = contact_data.shift
end
end

0 comments on commit 738e6fe

Please sign in to comment.