Sha256: d8a5620b4cb7ee7575bfeb5d6e5a3b667585535b7d200c3298e0839cb7e2f6cc
Contents?: true
Size: 453 Bytes
Versions: 7
Compression:
Stored size: 453 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 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
7 entries across 7 versions & 1 rubygems