mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
12 lines
164 B
Ruby
12 lines
164 B
Ruby
class MPDConnection
|
|
def self.mpd
|
|
@@mpd ||= MPD.new
|
|
@@mpd.connect unless @@mpd.connected?
|
|
@@mpd
|
|
end
|
|
|
|
def self.status
|
|
self.mpd.status
|
|
end
|
|
end
|