Class: Fontist::Indexes::FilenameIndex
- Defined in:
- lib/fontist/indexes/filename_index.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseIndex
#add_index_formula, #build, from_yaml, #initialize, #load_formulas, #load_index_formulas, rebuild, reset_cache, #to_h, #to_yaml
Constructor Details
This class inherits a constructor from Fontist::Indexes::BaseIndex
Class Method Details
.path ⇒ Object
6 7 8 |
# File 'lib/fontist/indexes/filename_index.rb', line 6 def self.path Fontist.formula_filename_index_path end |
Instance Method Details
#add_formula(formula) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/fontist/indexes/filename_index.rb', line 10 def add_formula(formula) formula.fonts.each do |font| font.styles.each do |style| add_index_formula(style.font, formula.to_index_formula) end end end |