Sha256: 2cf02f201d63c433e635227fb790ee35bf88d88e3695c10101b5a9493ecdc804

Contents?: true

Size: 395 Bytes

Versions: 13

Compression:

Stored size: 395 Bytes

Contents

require_relative "base_index"

module Fontist
  module Indexes
    class FontIndex < 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

13 entries across 13 versions & 1 rubygems

Version Path
fontist-1.9.3 lib/fontist/indexes/font_index.rb
fontist-1.9.2 lib/fontist/indexes/font_index.rb
fontist-1.9.1 lib/fontist/indexes/font_index.rb
fontist-1.9.0 lib/fontist/indexes/font_index.rb
fontist-1.8.13 lib/fontist/indexes/font_index.rb
fontist-1.8.12 lib/fontist/indexes/font_index.rb
fontist-1.8.11 lib/fontist/indexes/font_index.rb
fontist-1.8.10 lib/fontist/indexes/font_index.rb
fontist-1.8.9 lib/fontist/indexes/font_index.rb
fontist-1.8.8 lib/fontist/indexes/font_index.rb
fontist-1.8.7 lib/fontist/indexes/font_index.rb
fontist-1.8.6 lib/fontist/indexes/font_index.rb
fontist-1.8.5 lib/fontist/indexes/font_index.rb