lib/turntabler/song.rb
def move(to_index)
      api('playlist.reorder', :playlist_name => playlist.id, :index_from => index, :index_to => to_index)
      playlist.songs.insert(to_index, playlist.songs.delete(self))
      true
    end
def move(to_index)
      api('playlist.reorder', :playlist_name => playlist.id, :index_from => index, :index_to => to_index)
      playlist.songs.insert(to_index, playlist.songs.delete(self))
      true
    end
def move ( to_index ) api ( 'playlist.reorder' , :playlist_name => playlist . id , :index_from => index , :index_to => to_index ) playlist . songs . insert ( to_index , playlist . songs . delete ( self ) ) true end
Move a song from one location in the playlist to another.

 @param [Fixnum] to_index The index to move the song to
 @return [true]
 @raise [ArgumentError] if an invalid option is specified
 @raise [Turntabler::Error] if the command fails
   song.move(5)    # => true
Move a song from one location in the playlist to another .