Sha256: a5189d91a809ac1236c82b10c622d00d7185d315400349983b6c407db277ceb8

Contents?: true

Size: 408 Bytes

Versions: 9

Compression:

Stored size: 408 Bytes

Contents

require_relative "base_index"

module Fontist
  module Indexes
    class DefaultFamilyFontIndex < BaseIndex
      def self.path
        Fontist.formula_index_path
      end

      def add_formula(formula)
        formula.fonts.each do |font|
          add_index_formula(font.name, formula.to_index_formula)
        end
      end

      def normalize_key(key)
        key.downcase
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fontist-1.12.0 lib/fontist/indexes/default_family_font_index.rb
fontist-1.11.7 lib/fontist/indexes/default_family_font_index.rb
fontist-1.11.6 lib/fontist/indexes/default_family_font_index.rb
fontist-1.11.5 lib/fontist/indexes/default_family_font_index.rb
fontist-1.11.3 lib/fontist/indexes/default_family_font_index.rb
fontist-1.11.2 lib/fontist/indexes/default_family_font_index.rb
fontist-1.11.1 lib/fontist/indexes/default_family_font_index.rb
fontist-1.10.1 lib/fontist/indexes/default_family_font_index.rb
fontist-1.10.0 lib/fontist/indexes/default_family_font_index.rb