Module: MPD::Plugins::Playlists

Included in:
MPD
Defined in:
lib/ruby-mpd/plugins/playlists.rb

Overview

These commands manipulate stored playlists.

Changes: listplaylists -> playlists.

Instance Method Summary collapse

Instance Method Details

#playlistsArray<Hash>

List all of the playlists in the database

Returns:

  • (Array<Hash>)

    Array of playlists



11
12
13
# File 'lib/ruby-mpd/plugins/playlists.rb', line 11

def playlists
  send_command(:listplaylists).map {|opt| MPD::Playlist.new(self, opt)}
end