lib/rdf/changeset.rb in rdf-2.1.1 vs lib/rdf/changeset.rb in rdf-2.2.0.pre.rc1
- old
+ new
@@ -39,11 +39,11 @@
# @param [RDF::Mutable] mutable
# @param [Hash{Symbol => Object}] options
# @yield [changes]
# @yieldparam [RDF::Changeset] changes
# @return [void]
- def self.apply(mutable, options = {}, &block)
+ def self.apply(mutable, **options, &block)
self.new(&block).apply(mutable, options)
end
##
# RDF statements to delete when applied.
@@ -104,10 +104,10 @@
# This operation executes as a single write transaction.
#
# @param [RDF::Mutable] mutable
# @param [Hash{Symbol => Object}] options
# @return [void]
- def apply(mutable, options = {})
+ def apply(mutable, **options)
mutable.apply_changeset(self)
end
##
# @return [Boolean] `true` iff inserts and deletes are both empty