class MPD::Commands::CurrentPlaylistAdd

Adds song(s) to current playlist `songs` is an array of URIs.

Public Instance Methods

execute(songs) click to toggle source

`songs` is position (as int) or range

# File lib/mpd/commands/current_playlist_add.rb, line 13
def execute(songs)
  return exec_command("add \"#{songs}\"") unless songs.is_a?(Array)
  exec_command_list(songs.map { |s| "add \"#{s}\"" })
end