Module: Metanorma::Plugin::Glossarist::Liquid::PolyfillIndexedAccess
- Defined in:
- lib/metanorma/plugin/glossarist/liquid/drop_bracket_access.rb
Constant Summary collapse
- COLLECTION_CLASSES =
%w[ Glossarist::Collections::LocalizationCollection Glossarist::Collections::DetailedDefinitionCollection Glossarist::Collections::ConceptSourceCollection ].freeze
Class Method Summary collapse
Class Method Details
.apply! ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/metanorma/plugin/glossarist/liquid/drop_bracket_access.rb', line 24 def self.apply! COLLECTION_CLASSES.each do |class_name| klass = class_name.split("::").reduce(Object) do |mod, name| mod.const_get(name) end klass.include(Lutaml::Model::Liquid::IndexedAccess) unless klass.include?(Lutaml::Model::Liquid::IndexedAccess) end end |