Class: Fontcustom::Generator::Font
- Inherits:
-
Object
- Object
- Fontcustom::Generator::Font
- Includes:
- Utility
- Defined in:
- lib/fontcustom/generator/font.rb
Instance Attribute Summary collapse
-
#manifest ⇒ Object
readonly
Returns the value of attribute manifest.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(manifest) ⇒ Font
constructor
A new instance of Font.
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
#manifest ⇒ Object (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
#generate ⇒ Object
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 |