Class: Awestruct::TextileFile
- Inherits:
-
FrontMatterFile
- Object
- OpenStruct
- Renderable
- RenderableFile
- FrontMatterFile
- Awestruct::TextileFile
- Includes:
- Textilable
- Defined in:
- lib/awestruct/textile_file.rb
Instance Attribute Summary
Attributes inherited from FrontMatterFile
#front_matter, #raw_page_content
Attributes inherited from Renderable
Instance Method Summary (collapse)
-
- (TextileFile) initialize(site, source_path, relative_source_path, options = {})
constructor
A new instance of TextileFile.
- - (Object) output_extension
- - (Object) output_filename
Methods included from Textilable
Methods inherited from RenderableFile
Methods inherited from Renderable
Constructor Details
- (TextileFile) initialize(site, source_path, relative_source_path, options = {})
A new instance of TextileFile
10 11 12 |
# File 'lib/awestruct/textile_file.rb', line 10 def initialize(site, source_path, relative_source_path, = {}) super(site, source_path, relative_source_path, ) end |
Instance Method Details
- (Object) output_extension
18 19 20 |
# File 'lib/awestruct/textile_file.rb', line 18 def output_extension '.html' end |
- (Object) output_filename
14 15 16 |
# File 'lib/awestruct/textile_file.rb', line 14 def output_filename File.basename( self.source_path, '.textile' ) + output_extension end |