Class: Fontist::Indexes::FilenameIndex
- Inherits:
-
Lutaml::Model::Collection
- Object
- Lutaml::Model::Collection
- Fontist::Indexes::FilenameIndex
- Includes:
- IndexMixin
- Defined in:
- lib/fontist/indexes/filename_index.rb
Overview
YAML file structure:
AdobeArabic_Bold.otf:
-
adobe_reader_19.yml
AdobeArabic_BoldItalic.otf:
-
adobe_reader_19.yml
AdobeArabic_Italic.otf:
-
adobe_reader_19.yml
AdobeArabic_Regular.otf:
-
adobe_reader_19.yml
adobedevanagari_bold.otf:
-
adobe_reader_19.yml
Class Method Summary collapse
Instance Method Summary collapse
-
#index_key_for_style(style) ⇒ Object
Font collections font_collections: - filename: AdelleSans.ttc fonts: - name: Adelle Sans Devanagari styles:.
- #normalize_key(key) ⇒ Object
Methods included from IndexMixin
#add_formula, #add_index_formula, #build, included, #load_formulas, #load_index_formulas, #to_file
Class Method Details
.path ⇒ Object
29 30 31 |
# File 'lib/fontist/indexes/filename_index.rb', line 29 def self.path Fontist.formula_filename_index_path end |
Instance Method Details
#index_key_for_style(style) ⇒ Object
Font collections font_collections:
-
filename: AdelleSans.ttc fonts:
-
name: Adelle Sans Devanagari styles:
-
47 48 49 |
# File 'lib/fontist/indexes/filename_index.rb', line 47 def index_key_for_style(style) style.font end |
#normalize_key(key) ⇒ Object
51 52 53 |
# File 'lib/fontist/indexes/filename_index.rb', line 51 def normalize_key(key) key end |