archSeer/ruby-mpd

View on GitHub
lib/ruby-mpd/plugins/playlists.rb

Summary

Maintainability
A
0 mins
Test Coverage
class MPD
  module Plugins
    # These commands manipulate stored playlists.
    module Playlists

      # List all of the playlists in the database
      #
      # @return [Array<MPD::Playlist>] Array of playlists
      def playlists
        send_command(:listplaylists).map { |opt| MPD::Playlist.new(self, opt) }
      end

    end
  end
end