Class: Fontcustom::Generator::Font

Inherits:
Object
  • Object
show all
Includes:
Utility
Defined in:
lib/fontcustom/generator/font.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utility

#behavior, #destination_root, #line_break, #methodize_hash, #options, #project_root, #say_changed, #say_message, #say_status, #shell, shell, #source_paths, #symbolize_hash, #write_file

Constructor Details

#initialize(manifest) ⇒ Font

Returns a new instance of Font.



11
12
13
14
# File 'lib/fontcustom/generator/font.rb', line 11

def initialize(manifest)
  @manifest = Fontcustom::Manifest.new manifest
  @options = @manifest.get :options
end

Instance Attribute Details

#manifestObject (readonly)

Returns the value of attribute manifest.



9
10
11
# File 'lib/fontcustom/generator/font.rb', line 9

def manifest
  @manifest
end

Instance Method Details

#generateObject



16
17
18
19
20
21
# File 'lib/fontcustom/generator/font.rb', line 16

def generate
  create_output_dirs
  delete_old_fonts
  set_glyph_info
  create_fonts
end