lib/nano_store/store_extension.rb
# delete a object or array of objects from the array
delete a object or array of objects from the array
delete a object or array of objects from the array
def delete(objects)
    error_ptr = Pointer.new(:id)
    if objects.is_a?(Array)
      result = self.removeObjectsInArray(objects, error:error_ptr)
    else
      result = self.removeObject(objects, error:error_ptr)
    end
    raise NanoStore::NanoStoreError, error_ptr[0].description if error_ptr[0]
    result
  end
def delete ( objects ) error_ptr = Pointer . new ( :id ) if objects . is_a? ( Array ) result = self . removeObjectsInArray ( objects , error : error_ptr ) else result = self . removeObject ( objects , error : error_ptr ) end raise NanoStore :: NanoStoreError , error_ptr [ 0 ] . description if error_ptr [ 0 ] result end
delete a object or array of objects from the array
delete a object or array of objects from the array
objects