Class: MPD::Commands::CurrentPlaylistInfo
- Defined in:
- lib/mpd/commands/current_playlist_info.rb
Overview
Info about songs in current playlist
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
-
#execute(songs = nil) ⇒ Object
‘songs` can be range or integer (to show info about one song) or completely ommited (to show info about all songs).
Methods inherited from Abstract
Constructor Details
This class inherits a constructor from MPD::Commands::Abstract
Instance Method Details
#execute(songs = nil) ⇒ Object
‘songs` can be range or integer (to show info about one song) or completely ommited (to show info about all songs)
12 13 14 15 |
# File 'lib/mpd/commands/current_playlist_info.rb', line 12 def execute(songs = nil) response = super("playlistinfo #{resolve_range(songs)}") Playlist.from_response(response) end |