Class: Fontist::Import::OtfinfoGenerate
- Inherits:
 - 
      Object
      
        
- Object
 - Fontist::Import::OtfinfoGenerate
 
 
- Defined in:
 - lib/fontist/import/otfinfo_generate.rb
 
Constant Summary collapse
- TEMPLATE_PATH =
 File.("otfinfo/template.erb", __dir__)
Instance Method Summary collapse
- #call ⇒ Object
 - 
  
    
      #initialize(font)  ⇒ OtfinfoGenerate 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of OtfinfoGenerate.
 
Constructor Details
#initialize(font) ⇒ OtfinfoGenerate
Returns a new instance of OtfinfoGenerate.
      12 13 14  | 
    
      # File 'lib/fontist/import/otfinfo_generate.rb', line 12 def initialize(font) @font = font end  | 
  
Instance Method Details
#call ⇒ Object
      16 17 18 19 20 21  | 
    
      # File 'lib/fontist/import/otfinfo_generate.rb', line 16 def call paths = font_paths(@font) puts paths styles = generate_styles(paths) puts render(styles) end  |