Class: Icosmith::Generator
- Inherits:
-
Object
- Object
- Icosmith::Generator
- Defined in:
- lib/icosmith-rails/generator.rb
Instance Method Summary collapse
-
#initialize(root_path) ⇒ Generator
constructor
A new instance of Generator.
- #setup_fonts ⇒ Object
Constructor Details
#initialize(root_path) ⇒ Generator
Returns a new instance of Generator.
5 6 7 8 |
# File 'lib/icosmith-rails/generator.rb', line 5 def initialize(root_path) @root_path = root_path load_config end |
Instance Method Details
#setup_fonts ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/icosmith-rails/generator.rb', line 10 def setup_fonts fonts = [] if @config.fonts @config.fonts.each do |font_name| fonts << Icosmith::Font.new(@root_path, @config, font_name) end else fonts << Icosmith::Font.new(@root_path, @config) end fonts end |