1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00
mpd-client/lib/mpd_client/artist.rb
2013-12-12 11:51:59 +00:00

19 lines
234 B
Ruby

module MPDClient
class Artist
include ClassToProc
attr :name
def initialize(name)
@name = name
end
class << self
def all
MPDClient.conn.artists.sort.map(&self)
end
end
end
end