lib/cocina/models/vocabulary.rb in cocina-models-0.71.0 vs lib/cocina/models/vocabulary.rb in cocina-models-0.72.0
- old
+ new
@@ -23,8 +23,17 @@
end
def self.properties
@properties ||= {}
end
+
+ ##
+ # Returns the URI for the term `property` in this vocabulary.
+ #
+ # @param [#to_sym] property
+ # @return [String]
+ def self.[](property)
+ properties[property.to_sym]
+ end
end
end
end