class MPD::Commands::CurrentPlaylistRemove
Removes songs from current playlist by id or position/range
Public Instance Methods
execute(position: nil, id: nil)
click to toggle source
`position` is int or range `id` is int song id
# File lib/mpd/commands/current_playlist_remove.rb, line 14 def execute(position: nil, id: nil) raise(ArgumentError) if position && id || !position && !id command = id ? "deleteid #{id}" : "delete #{resolve_range(position)}" exec_command(command) end