Module: MPD::Client::Commands::CurrentPlaylist
- Defined in:
- lib/mpd/client/commands/current_playlist.rb
Overview
Instance Method Summary collapse
-
#playlist_info(songs = nil) ⇒ Object
songs - integer or range.
Instance Method Details
#playlist_info(songs = nil) ⇒ Object
songs - integer or range
9 10 11 12 13 |
# File 'lib/mpd/client/commands/current_playlist.rb', line 9 def playlist_info(songs = nil) argument = songs.is_a?(Range) ? "#{songs.begin}:#{songs.end}" : songs response = execute "playlistinfo #{argument}" Playlist.from_response(response) end |