Class: ITunesLibrary
- Inherits:
-
Object
- Object
- ITunesLibrary
- Defined in:
- lib/lyrix.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(itunes_library_path) ⇒ ITunesLibrary
constructor
A new instance of ITunesLibrary.
Constructor Details
#initialize(itunes_library_path) ⇒ ITunesLibrary
Returns a new instance of ITunesLibrary.
10 11 12 |
# File 'lib/lyrix.rb', line 10 def initialize(itunes_library_path) @library = ITunes::Library.load(itunes_library_path) end |
Instance Method Details
#each ⇒ Object
14 15 16 17 18 |
# File 'lib/lyrix.rb', line 14 def each @library.music.tracks.each do |track| yield(track.location_path) end end |