Module: Iqvoc::XLLabel

Defined in:
lib/iqvoc/xllabel.rb

Overview

These are the settings when using SKOS-XL

Class Method Summary collapse

Class Method Details

.additional_association_classesObject



50
51
52
53
54
# File 'lib/iqvoc/xllabel.rb', line 50

def self.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]
  end
end

.base_classObject

Do not use the following method in models. This will propably cause a loading loop (something like “expected file xyz to load …”)



34
35
36
# File 'lib/iqvoc/xllabel.rb', line 34

def self.base_class
  base_class_name.constantize
end

.change_note_classObject



46
47
48
# File 'lib/iqvoc/xllabel.rb', line 46

def self.change_note_class
  change_note_class_name.constantize
end

.note_classesObject



42
43
44
# File 'lib/iqvoc/xllabel.rb', line 42

def self.note_classes
  note_class_names.map(&:constantize)
end

.relation_classesObject



38
39
40
# File 'lib/iqvoc/xllabel.rb', line 38

def self.relation_classes
  relation_class_names.map(&:constantize)
end