Module: Metanorma::Plugin::Glossarist::Liquid::CollectionCache
- Defined in:
- lib/metanorma/plugin/glossarist/liquid/custom_blocks/with_glossarist_context.rb
Class Method Summary collapse
Class Method Details
.fetch(folder_path) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/metanorma/plugin/glossarist/liquid/custom_blocks/with_glossarist_context.rb', line 14 def self.fetch(folder_path) @cache[folder_path] ||= begin collection = ::Glossarist::ManagedConceptCollection.new collection.load_from_files(folder_path) collection end end |