1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00
mpd-client/models/mpd_connection.rb
2013-09-02 14:40:39 +01:00

8 lines
119 B
Ruby

class MPDConnection
def self.mpd
@@mpd ||= MPD.new
@@mpd.connect unless @@mpd.connected?
@@mpd
end
end