Skip to content
Browse files

Got the album tag lengths working. Big thanks go to theefer (http://i…

  • Loading branch information...
1 parent d9b1c1b commit b141994c82b3bef313d6b5a3052f963ac849331b @VxJasonxV VxJasonxV committed Apr 25, 2009
Showing with 4 additions and 5 deletions.
  1. +4 −5 README.rdoc
View
9 README.rdoc
@@ -42,11 +42,10 @@ Below is just a sampling of how easy this lib is to use.
puts
puts
- # Can't quite figure out the magic in this one...
- #puts "Album Tags"
- #longest_tag_name = album.info["toptags"]["tag"].collect(&:name).sort { |x, y| y.length <=> x.length }.first.length
- #puts "=" * longest_tag_name
- #album.info["toptags"]["tag"].each { |t| puts t["name"] }
+ puts "Album Tags"
+ longest_tag_name = album.info["toptags"]["tag"].collect {|t| t["name"] }.sort {|x, y| y.length <=> x.length }.first.length
+ puts "=" * longest_tag_name
+ album.info["toptags"]["tag"].each { |t| puts t["name"] }
== Artists

0 comments on commit b141994

Please sign in to comment.
Something went wrong with that request. Please try again.