Class: Awestruct::ScssFile

Inherits:
RenderableFile show all
Includes:
Sassable
Defined in:
lib/awestruct/scss_file.rb

Instance Attribute Summary

Attributes inherited from Renderable

#site

Instance Method Summary collapse

Methods included from Sassable

#output_extension, #render

Methods inherited from RenderableFile

#output_extension, #raw_page_content, #render

Methods inherited from Renderable

#render

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, options = {})
  super( site, source_path, relative_source_path, options )
end

Instance Method Details

#output_filenameObject



15
16
17
# File 'lib/awestruct/scss_file.rb', line 15

def output_filename
  File.basename( source_path, '.scss' ) + '.css'
end

#syntaxObject



19
20
21
# File 'lib/awestruct/scss_file.rb', line 19

def syntax
  :scss
end