Class: Awestruct::ScssFile
- Inherits:
-
RenderableFile
- Object
- OpenStruct
- Renderable
- RenderableFile
- Awestruct::ScssFile
- Includes:
- Sassable
- Defined in:
- lib/awestruct/scss_file.rb
Instance Attribute Summary
Attributes inherited from Renderable
Instance Method Summary collapse
-
#initialize(site, source_path, relative_source_path, options = {}) ⇒ ScssFile
constructor
A new instance of ScssFile.
- #output_filename ⇒ Object
- #syntax ⇒ Object
Methods included from Sassable
Methods inherited from RenderableFile
#output_extension, #raw_page_content, #render
Methods inherited from Renderable
Constructor Details
#initialize(site, source_path, relative_source_path, options = {}) ⇒ ScssFile
Returns a new instance of ScssFile.
11 12 13 |
# File 'lib/awestruct/scss_file.rb', line 11 def initialize(site, source_path, relative_source_path, = {}) super( site, source_path, relative_source_path, ) end |
Instance Method Details
#output_filename ⇒ Object
15 16 17 |
# File 'lib/awestruct/scss_file.rb', line 15 def output_filename File.basename( source_path, '.scss' ) + '.css' end |
#syntax ⇒ Object
19 20 21 |
# File 'lib/awestruct/scss_file.rb', line 19 def syntax :scss end |