Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # File: blocks-14.rb
  2. #
  3. customers = [{first_name: 'John', last_name: 'Smith'},
  4. {first_name: 'Mary', last_name: 'Foo'},
  5. {first_name: 'George', last_name: 'Papas'}]
  6.  
  7. customers.each do |element|
  8. puts "Customer is: #{element[:first_name]} #{element[:last_name]}"
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement