class Fontist::FontInstaller
Public Class Methods
new(formula, font_name: nil, no_progress: false)
click to toggle source
# File lib/fontist/font_installer.rb, line 8 def initialize(formula, font_name: nil, no_progress: false) @formula = formula @font_name = font_name @no_progress = no_progress end
Public Instance Methods
install(confirmation:)
click to toggle source
# File lib/fontist/font_installer.rb, line 14 def install(confirmation:) raise_fontist_version_error unless supported_version? raise_licensing_error unless license_is_accepted?(confirmation) install_font end