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