Class: Icofont::FontProcessor
- Inherits:
-
Object
- Object
- Icofont::FontProcessor
- Includes:
- FileUtils::Verbose
- Defined in:
- lib/icofont/font_processor.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(icons) ⇒ FontProcessor
constructor
A new instance of FontProcessor.
Constructor Details
#initialize(icons) ⇒ FontProcessor
Returns a new instance of FontProcessor.
10 11 12 |
# File 'lib/icofont/font_processor.rb', line 10 def initialize(icons) @icons = icons end |
Instance Method Details
#generate ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/icofont/font_processor.rb', line 14 def generate clean_dir Paths.output_fonts_path rm Paths.output_css_file_path if File.exists?(Paths.output_css_file_path) return unless @icons && @icons.length > 0 with_glyphs do |tmp_dir| generate_vectors tmp_dir end end |