Last active
December 29, 2015 00:39
-
-
Save jmoon90/7587999 to your computer and use it in GitHub Desktop.
Given a data set. Output the titles, along with their year
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'pry' | |
| favorite_movies = [ | |
| { title: 'The Big Lebowski', year_released: 1998, director: 'Joel Coen', imdb_rating: 8.2 }, | |
| { title: 'The Shining', year_released: 1980, director: 'Stanley Kubrick', imdb_rating: 8.5 }, | |
| { title: 'Troll 2', year_released: 1990, directory: 'Claudio Fragasso', imdb_rating: 2.5 } | |
| ] | |
| favorite_movies.each do |movies| | |
| puts "#{movies[:year_released]}: #{movies[:title]}" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment