Class: Fontist::Import::Macos
- Inherits:
-
Object
- Object
- Fontist::Import::Macos
- Defined in:
- lib/fontist/import/macos.rb
Constant Summary collapse
- FONT_XML =
rubocop:disable Layout/LineLength
"/System/Library/AssetsV2/com_apple_MobileAsset_Font6/com_apple_MobileAsset_Font6.xml".freeze
- HOMEPAGE =
"https://support.apple.com/en-om/HT211240#document".freeze
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(font_xml = FONT_XML) ⇒ Macos
constructor
A new instance of Macos.
Constructor Details
#initialize(font_xml = FONT_XML) ⇒ Macos
Returns a new instance of Macos.
11 12 13 |
# File 'lib/fontist/import/macos.rb', line 11 def initialize(font_xml = FONT_XML) @font_xml = font_xml end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/fontist/import/macos.rb', line 15 def call links.each do |link| create_formula(link) end Fontist::Index.rebuild Fontist.ui.success("Created #{links.size} formulas.") end |