Method: RDF::Mutable#apply_changeset

Defined in:
lib/rdf/mixin/mutable.rb

#apply_changeset(changeset) ⇒ Boolean

Applies the given changeset

If ‘#supports?(:atomic_write)` is true, this must apply the changeset atomically. Otherwise, it should offer an efficient implementation of a combined delete/insert of the changeset.

Parameters:

Returns:

  • (Boolean)

    true if the changeset has been applied



210
211
212
# File 'lib/rdf/mixin/mutable.rb', line 210

def apply_changeset(changeset)
  delete_insert(changeset.deletes, changeset.inserts)
end