Sha256: 188793f29cd2d296782ea00277d1502eae780c45eb2ac875fabd5524390c2b6c
Contents?: true
Size: 523 Bytes
Versions: 20
Compression:
Stored size: 523 Bytes
Contents
module Kagu class Library PATH = File.expand_path("#{ENV['HOME']}/Music/iTunes/iTunes Music Library.xml") attr_reader :path def initialize(path = PATH) self.path = path end def finder(options = {}) Finder.new(self, options) end def playlists Playlists.new(self) end def tracks Tracks.new(self) end private def path=(path) raise Error.new("No such file: #{path.inspect}") unless File.file?(path) @path = path end end end
Version data entries
20 entries across 20 versions & 1 rubygems