class Toppings::Generators::Install::RootFileGenerator
Public Instance Methods
create_root_file()
click to toggle source
the only ever fully compiled file at the moment
# File lib/toppings/generators/install/root_file_generator.rb, line 9 def create_root_file create_file(root_file_path, skip: true) do [vendor_framework_imports, blank_line, start_application_framework].flatten.join end end
Private Instance Methods
root_file_comment(message)
click to toggle source
# File lib/toppings/generators/install/root_file_generator.rb, line 26 def root_file_comment(message) add_line_comment message, root_file_path end
root_file_headline(message)
click to toggle source
# File lib/toppings/generators/install/root_file_generator.rb, line 30 def root_file_headline(message) headline_comment message, root_file_path end
start_application_framework()
click to toggle source
# File lib/toppings/generators/install/root_file_generator.rb, line 22 def start_application_framework root_file_headline 'Application Framework' end
vendor_framework_imports()
click to toggle source
# File lib/toppings/generators/install/root_file_generator.rb, line 17 def vendor_framework_imports imports = sass_framework_imports.map { |import| import_format(import) } imports.unshift root_file_headline('Vendor Frameworks') end