class Fontist::Fontconfig

Public Class Methods

new(options = {}) click to toggle source
# File lib/fontist/fontconfig.rb, line 11
def initialize(options = {})
  @options = options
end
remove(options = {}) click to toggle source
# File lib/fontist/fontconfig.rb, line 7
def self.remove(options = {})
  new(options).remove
end
update() click to toggle source
# File lib/fontist/fontconfig.rb, line 3
def self.update
  new.update
end

Public Instance Methods

remove() click to toggle source
# File lib/fontist/fontconfig.rb, line 21
def remove
  return handle_file_not_found unless config_exists?

  regenerate_fontconfig_cache if fontconfig_installed?
  remove_config
end
update() click to toggle source
# File lib/fontist/fontconfig.rb, line 15
def update
  ensure_fontconfig_installed
  create_config
  regenerate_fontconfig_cache
end