lib/ro_crate/model/crate.rb in ro-crate-0.4.10 vs lib/ro_crate/model/crate.rb in ro-crate-0.4.11

- old
+ new

@@ -167,9 +167,18 @@ def preview @preview ||= ROCrate::Preview.new(self) end ## + # Set the RO-Crate preview file + # @param preview [Preview] the preview to set. + # + # @return [Preview] + def preview=(preview) + @preview = claim(preview) + end + + ## # All the entities within the crate. Includes contextual entities, data entities, the crate itself and its metadata file. # # @return [Array<Entity>] def entities default_entities | data_entities | contextual_entities