Module: Iqvoc::XLLabel
- Defined in:
- lib/iqvoc/xllabel.rb
Overview
These are the settings when using SKOS-XL
Class Method Summary collapse
- .additional_association_classes ⇒ Object
-
.base_class ⇒ Object
Do not use the following method in models.
- .change_note_class ⇒ Object
- .note_classes ⇒ Object
- .relation_classes ⇒ Object
Class Method Details
.additional_association_classes ⇒ Object
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_class ⇒ Object
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_class ⇒ Object
48 49 50 |
# File 'lib/iqvoc/xllabel.rb', line 48 def self.change_note_class change_note_class_name.constantize end |
.note_classes ⇒ Object
44 45 46 |
# File 'lib/iqvoc/xllabel.rb', line 44 def self.note_classes note_class_names.map(&:constantize) end |
.relation_classes ⇒ Object
40 41 42 |
# File 'lib/iqvoc/xllabel.rb', line 40 def self.relation_classes relation_class_names.map(&:constantize) end |