mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
19 lines
234 B
Ruby
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
|