Class: Fontist::Import::RecursiveExtraction
- Inherits:
-
Object
- Object
- Fontist::Import::RecursiveExtraction
- Defined in:
- lib/fontist/import/recursive_extraction.rb
Constant Summary collapse
- LICENSE_PATTERN =
/(ofl\.txt|ufl\.txt|licenses?\.txt|license(\.md)?|copying)$/i.freeze
Instance Method Summary collapse
- #font_collection_files ⇒ Object
- #font_files ⇒ Object
-
#initialize(archive, subdir: nil, file_pattern: nil, name_prefix: nil) ⇒ RecursiveExtraction
constructor
A new instance of RecursiveExtraction.
- #license_text ⇒ Object
- #operations ⇒ Object
Constructor Details
#initialize(archive, subdir: nil, file_pattern: nil, name_prefix: nil) ⇒ RecursiveExtraction
Returns a new instance of RecursiveExtraction.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fontist/import/recursive_extraction.rb', line 11 def initialize(archive, subdir: nil, file_pattern: nil, name_prefix: nil) @archive = archive @subdir = subdir @file_pattern = file_pattern @name_prefix = name_prefix @operations = {} @font_files = [] @collection_files = [] save_operation_subdir end |
Instance Method Details
#font_collection_files ⇒ Object
28 29 30 31 |
# File 'lib/fontist/import/recursive_extraction.rb', line 28 def font_collection_files ensure_extracted @collection_files end |
#font_files ⇒ Object
23 24 25 26 |
# File 'lib/fontist/import/recursive_extraction.rb', line 23 def font_files ensure_extracted @font_files end |
#license_text ⇒ Object
33 34 35 36 |
# File 'lib/fontist/import/recursive_extraction.rb', line 33 def license_text ensure_extracted @license_text end |
#operations ⇒ Object
38 39 40 41 |
# File 'lib/fontist/import/recursive_extraction.rb', line 38 def operations ensure_extracted @operations end |