Sha256: 5e07e72381c0508fd192b6589ec45697642609039f3b5e5f9deff727c9ebe085

Contents?: true

Size: 530 Bytes

Versions: 27

Compression:

Stored size: 530 Bytes

Contents

require_relative "indexes/font_index"
require_relative "indexes/filename_index"

module Fontist
  class Index
    def self.rebuild
      Fontist::Indexes::DefaultFamilyFontIndex.rebuild
      Fontist::Indexes::PreferredFamilyFontIndex.rebuild
      Fontist::Indexes::FilenameIndex.rebuild

      reset_cache
    end

    def self.reset_cache
      Fontist::Indexes::DefaultFamilyFontIndex.reset_cache
      Fontist::Indexes::PreferredFamilyFontIndex.reset_cache
      Fontist::Indexes::FilenameIndex.reset_cache
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
fontist-1.13.0 lib/fontist/index.rb
fontist-1.12.0 lib/fontist/index.rb
fontist-1.11.7 lib/fontist/index.rb
fontist-1.11.6 lib/fontist/index.rb
fontist-1.11.5 lib/fontist/index.rb
fontist-1.11.3 lib/fontist/index.rb
fontist-1.11.2 lib/fontist/index.rb