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
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_class ⇒ Object
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_class ⇒ Object
46 47 48 |
# File 'lib/iqvoc/xllabel.rb', line 46 def self.change_note_class change_note_class_name.constantize end |
.note_classes ⇒ Object
42 43 44 |
# File 'lib/iqvoc/xllabel.rb', line 42 def self.note_classes note_class_names.map(&:constantize) end |
.relation_classes ⇒ Object
38 39 40 |
# File 'lib/iqvoc/xllabel.rb', line 38 def self.relation_classes relation_class_names.map(&:constantize) end |