Class: Fontist::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/fontist/index.rb

Class Method Summary collapse

Class Method Details

.rebuildObject



6
7
8
9
10
11
12
# File 'lib/fontist/index.rb', line 6

def self.rebuild
  Fontist::Indexes::DefaultFamilyFontIndex.rebuild
  Fontist::Indexes::PreferredFamilyFontIndex.rebuild
  Fontist::Indexes::FilenameIndex.rebuild

  reset_cache
end

.reset_cacheObject



14
15
16
17
18
# File 'lib/fontist/index.rb', line 14

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