lib/iqvoc/configuration/concept.rb in iqvoc-4.0.9 vs lib/iqvoc/configuration/concept.rb in iqvoc-4.1.0

- old
+ new

@@ -11,10 +11,11 @@ mattr_accessor :base_class_name, :root_class_name, :broader_relation_class_name, :further_relation_class_names, :pref_labeling_class_name, :match_class_names, :note_class_names, + :notation_class_names, :additional_association_class_names, :view_sections, :include_module_names self.base_class_name = 'Concept::SKOS::Base' @@ -40,13 +41,17 @@ 'Match::SKOS::RelatedMatch', 'Match::SKOS::BroadMatch', 'Match::SKOS::NarrowMatch', ] + self.notation_class_names = [ + 'Notation::Base' + ] + self.additional_association_class_names = {} - self.view_sections = ["main", "labels", "relations", "notes", "matches"] + self.view_sections = ["main", "labels", "relations", "notes", "notations", "matches"] self.include_module_names = [] end module ClassMethods @@ -118,9 +123,13 @@ note_class_names.map(&:constantize) end def match_classes match_class_names.map(&:constantize) + end + + def notation_classes + notation_class_names.map(&:constantize) end def additional_association_classes additional_association_class_names.keys.each_with_object({}) do |class_name, hash| hash[class_name.constantize] = additional_association_class_names[class_name]