Class: Ptero::Generator::StylesheetGenerator
- Inherits:
-
Ptero::Generator
- Object
- Ptero::Generator
- Ptero::Generator::StylesheetGenerator
- Defined in:
- lib/ptero/generators/stylesheetgenerator.rb
Overview
Generator for stylesheets
Direct Known Subclasses
Constant Summary
Constants inherited from Ptero::Generator
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
Attributes inherited from Ptero::Generator
Instance Method Summary collapse
-
#extension ⇒ String
“css”.
-
#initialize(name, desc = 'The purpose of this stylesheet is...') ⇒ StylesheetGenerator
constructor
Generate with name and optional description that will be generated in a comment (Defaults to “The purpose of this stylesheet is…”).
-
#path ⇒ String
“www/assets/css”.
Methods inherited from Ptero::Generator
const_missing, #content, #content_params, #filename, #generate, #generated?, #location, #reload, #remove, #template_path, #to_s, #type
Constructor Details
#initialize(name, desc = 'The purpose of this stylesheet is...') ⇒ StylesheetGenerator
Generate with name and optional description that will be generated in a comment (Defaults to “The purpose of this stylesheet is…”)
15 16 17 18 |
# File 'lib/ptero/generators/stylesheetgenerator.rb', line 15 def initialize(name,desc = 'The purpose of this stylesheet is...') super name.downcase @desc = desc end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
20 21 22 |
# File 'lib/ptero/generators/stylesheetgenerator.rb', line 20 def desc @desc end |
Instance Method Details
#extension ⇒ String
Returns “css”.
23 24 25 |
# File 'lib/ptero/generators/stylesheetgenerator.rb', line 23 def extension 'css' end |
#path ⇒ String
Returns “www/assets/css”.
28 29 30 |
# File 'lib/ptero/generators/stylesheetgenerator.rb', line 28 def path 'www/assets/css' end |