Skip to content

Instantly share code, notes, and snippets.

@jheg
Created January 13, 2015 12:30
Show Gist options
  • Save jheg/889ad956c998cde54114 to your computer and use it in GitHub Desktop.
Save jheg/889ad956c998cde54114 to your computer and use it in GitHub Desktop.
index
pretty_playlist_display = my_playlist.map do |song|
puts "Track #{my_playlist.index("song")}:"
puts "Song title: #{song.name}"
puts "By: #{song.artist}"
puts "Duration: #{song.duration}"
puts ""
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment