Class: Ptero::Generator::ApplicationStylesheetGenerator

Inherits:
StylesheetGenerator show all
Defined in:
lib/ptero/generators/applicationstylesheetgenerator.rb

Overview

Generate stylesheets to be used by application layouts

Instance Attribute Summary

Attributes inherited from StylesheetGenerator

#desc

Attributes inherited from Ptero::Generator

#app, #dir, #name

Instance Method Summary collapse

Methods inherited from StylesheetGenerator

#extension, #path

Methods inherited from Ptero::Generator

const_missing, #content, #content_params, #extension, #filename, #generate, #generated?, #location, #path, #reload, #remove, #template_path, #to_s, #type

Constructor Details

#initialize(name = 'application', desc = 'The main application stylesheet') ⇒ ApplicationStylesheetGenerator

Initialize with name and description

Parameters:

  • name (String) (defaults to: 'application')

    the stylesheet’s name

  • desc (String) (defaults to: 'The main application stylesheet')

    the stylesheet’s description



13
14
15
# File 'lib/ptero/generators/applicationstylesheetgenerator.rb', line 13

def initialize(name='application',desc='The main application stylesheet')
  super(name,desc)
end