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.21.2 lib/fontist/index.rb
fontist-1.21.1 lib/fontist/index.rb
fontist-1.20.0 lib/fontist/index.rb
fontist-1.19.0 lib/fontist/index.rb
fontist-1.18.2 lib/fontist/index.rb
fontist-1.17.1 lib/fontist/index.rb
fontist-1.17.0 lib/fontist/index.rb
fontist-1.16.0 lib/fontist/index.rb
fontist-1.15.2 lib/fontist/index.rb
fontist-1.15.1 lib/fontist/index.rb
fontist-1.15.0 lib/fontist/index.rb
fontist-1.14.6 lib/fontist/index.rb
fontist-1.14.5 lib/fontist/index.rb
fontist-1.14.4 lib/fontist/index.rb
fontist-1.14.3 lib/fontist/index.rb
fontist-1.14.2 lib/fontist/index.rb
fontist-1.14.1 lib/fontist/index.rb
fontist-1.14.0 lib/fontist/index.rb
fontist-1.13.2 lib/fontist/index.rb
fontist-1.13.1 lib/fontist/index.rb