Class: Niso::Jats::ModuleIncluder
- Inherits:
-
Object
- Object
- Niso::Jats::ModuleIncluder
- Defined in:
- lib/niso/jats/module_includer.rb
Constant Summary collapse
- TARGET_CLASSES =
%w[ AltTitle ArticleTitle Attrib Bold Comment DefHead FixedCase Italic MetaValue Monospace Overline Roman Sc See SeeAlso Strike Sub Subtitle Sup Term TermHead Title TransSubtitle TransTitle Underline ].freeze
Class Method Summary collapse
Class Method Details
.include_basic_text ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'lib/niso/jats/module_includer.rb', line 34 def self.include_basic_text TARGET_CLASSES.each do |class_name| full_class_name = "Niso::Jats::#{class_name}" klass = Object.const_get(full_class_name) klass.include Niso::Jats::BasicText if klass.is_a?(Class) rescue NameError puts "Class #{full_class_name} not found." end end |