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



52
53
54
55
56
# File 'lib/iqvoc/xllabel.rb', line 52

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 …”)



36
37
38
# File 'lib/iqvoc/xllabel.rb', line 36

def self.base_class
  base_class_name.constantize
end

.change_note_classObject



48
49
50
# File 'lib/iqvoc/xllabel.rb', line 48

def self.change_note_class
  change_note_class_name.constantize
end

.note_classesObject



44
45
46
# File 'lib/iqvoc/xllabel.rb', line 44

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

.relation_classesObject



40
41
42
# File 'lib/iqvoc/xllabel.rb', line 40

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