lib/ro_crate/model/entity.rb in ro-crate-0.4.1 vs lib/ro_crate/model/entity.rb in ro-crate-0.4.2
- old
+ new
@@ -1,9 +1,9 @@
module ROCrate
##
- # A generic "Entity" within an RO Crate. It has an identifier and a set of properties, and will be referenced in the
- # RO Crate Metadata's @graph.
+ # A generic "Entity" within an RO-Crate. It has an identifier and a set of properties, and will be referenced in the
+ # RO-Crate Metadata's @graph.
class Entity
attr_reader :crate
attr_reader :properties
##
@@ -58,10 +58,10 @@
end
##
# Automatically replace an Entity or Array of Entities with a reference or Array of references. Also associates
# the Entity/Entities with the current crate. This is useful for maintaining the flat @graph of entities that the
- # RO crate metadata file requires.
+ # RO-Crate metadata file requires.
#
# @param value [Entity, Array<Entity>, Object] A value that may be reference or array of references.
# @return [Hash, Array<Hash>, Object] Return a reference, Array of references, or just the object itself if
# it wasn't an Entity after all.
def auto_reference(value)