module Fontist

Constants

VERSION

Public Class Methods

debug=(bool) click to toggle source
# File lib/fontist.rb, line 118
def self.debug=(bool)
  @debug = bool
end
debug?() click to toggle source
# File lib/fontist.rb, line 114
def self.debug?
  @debug || false
end
default_fontist_path() click to toggle source
# File lib/fontist.rb, line 34
def self.default_fontist_path
  Pathname.new(File.join(Dir.home, ".fontist"))
end
downloads_path() click to toggle source
# File lib/fontist.rb, line 66
def self.downloads_path
  Fontist.fontist_path.join("downloads")
end
fontist_index_path() click to toggle source
# File lib/fontist.rb, line 82
def self.fontist_index_path
  Fontist.fontist_path.join("fontist_index.default_family.yml")
end
fontist_path() click to toggle source
# File lib/fontist.rb, line 30
def self.fontist_path
  Pathname.new(ENV["FONTIST_PATH"] || default_fontist_path)
end
fontist_preferred_family_index_path() click to toggle source
# File lib/fontist.rb, line 86
def self.fontist_preferred_family_index_path
  Fontist.fontist_path.join("fontist_index.preferred_family.yml")
end
fontist_version_path() click to toggle source
# File lib/fontist.rb, line 46
def self.fontist_version_path
  Fontist.fontist_path.join("versions", Update::VERSION)
end
fonts_path() click to toggle source
# File lib/fontist.rb, line 38
def self.fonts_path
  Fontist.fontist_path.join("fonts")
end
formula_filename_index_path() click to toggle source
# File lib/fontist.rb, line 98
def self.formula_filename_index_path
  Fontist.formula_index_dir.join("filename_index.yml")
end
formula_index_dir() click to toggle source
# File lib/fontist.rb, line 102
def self.formula_index_dir
  Fontist.fontist_version_path
end
formula_index_path() click to toggle source
# File lib/fontist.rb, line 90
def self.formula_index_path
  Fontist.formula_index_dir.join("formula_index.default_family.yml")
end
formula_preferred_family_index_path() click to toggle source
# File lib/fontist.rb, line 94
def self.formula_preferred_family_index_path
  Fontist.formula_index_dir.join("formula_index.preferred_family.yml")
end
formulas_path() click to toggle source
# File lib/fontist.rb, line 54
def self.formulas_path
  @formulas_path || Fontist.formulas_repo_path.join("Formulas")
end
formulas_path=(path) click to toggle source
# File lib/fontist.rb, line 58
def self.formulas_path=(path)
  @formulas_path = path
end
formulas_repo_path() click to toggle source
# File lib/fontist.rb, line 42
def self.formulas_repo_path
  Fontist.fontist_version_path.join("formulas")
end
formulas_repo_url() click to toggle source
# File lib/fontist.rb, line 50
def self.formulas_repo_url
  "https://github.com/fontist/formulas.git"
end
lib_path() click to toggle source
# File lib/fontist.rb, line 22
def self.lib_path
  Fontist.root_path.join("lib")
end
preferred_family=(bool) click to toggle source
# File lib/fontist.rb, line 110
def self.preferred_family=(bool)
  @preferred_family = bool
end
preferred_family?() click to toggle source
# File lib/fontist.rb, line 106
def self.preferred_family?
  !!@preferred_family
end
private_formulas_path() click to toggle source
# File lib/fontist.rb, line 62
def self.private_formulas_path
  Fontist.formulas_path.join("private")
end
root_path() click to toggle source
# File lib/fontist.rb, line 26
def self.root_path
  Pathname.new(File.dirname(__dir__))
end
system_file_path() click to toggle source
# File lib/fontist.rb, line 70
def self.system_file_path
  Fontist.lib_path.join("fontist", "system.yml")
end
system_index_path() click to toggle source
# File lib/fontist.rb, line 74
def self.system_index_path
  Fontist.fontist_path.join("system_index.default_family.yml")
end
system_preferred_family_index_path() click to toggle source
# File lib/fontist.rb, line 78
def self.system_preferred_family_index_path
  Fontist.fontist_path.join("system_index.preferred_family.yml")
end
ui() click to toggle source
# File lib/fontist.rb, line 18
def self.ui
  Fontist::Utils::UI
end