lib/ro_crate/model/crate.rb in ro-crate-0.4.16 vs lib/ro_crate/model/crate.rb in ro-crate-0.4.17
- old
+ new
@@ -291,10 +291,10 @@
##
# Remove any contextual entities that are not linked from any other entity.
# Optionally takes a block to decide whether the given entity should be removed or not, otherwise removes all
# unlinked entities.
# @yieldparam [ContextualEntity] entity An unlinked contextual entity.
- # @yieldparam [Boolean] remove Should this entity be removed?
+ # @yieldreturn [Boolean] remove Should this entity be removed?
#
# @return [Array<ContextualEntity>] The entities that were removed.
def gc(&block)
unlinked_entities = contextual_entities - metadata.linked_entities(deep: true)