Class: Glossarist::Collections::FigureCollection
- Inherits:
-
NonVerbalCollection
- Object
- Lutaml::Model::Collection
- NonVerbalCollection
- Glossarist::Collections::FigureCollection
- Defined in:
- lib/glossarist/collections/figure_collection.rb
Class Method Summary collapse
Methods inherited from NonVerbalCollection
#by_id, #entries, #exists?, #ids, #store
Class Method Details
.from_directory(dir) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/glossarist/collections/figure_collection.rb', line 10 def self.from_directory(dir) collection = new Dir.glob(File.join(dir, "*.yaml")).each do |path| fig = Figure.from_file(path) collection.store(fig) if fig end collection end |