Class: Awestruct::MarukuFile
- Inherits:
-
FrontMatterFile
- Object
- OpenStruct
- Renderable
- RenderableFile
- FrontMatterFile
- Awestruct::MarukuFile
- Includes:
- Blueclothable
- Defined in:
- lib/awestruct/maruku_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 = {}) ⇒ MarukuFile
constructor
A new instance of MarukuFile.
- #output_extension ⇒ Object
- #output_filename ⇒ Object
Methods included from Blueclothable
Methods inherited from RenderableFile
Methods inherited from Renderable
Constructor Details
#initialize(site, source_path, relative_source_path, options = {}) ⇒ MarukuFile
Returns a new instance of MarukuFile.
12 13 14 |
# File 'lib/awestruct/maruku_file.rb', line 12 def initialize(site, source_path, relative_source_path, = {}) super(site, source_path, relative_source_path, ) end |
Instance Method Details
#output_extension ⇒ Object
20 21 22 |
# File 'lib/awestruct/maruku_file.rb', line 20 def output_extension '.html' end |
#output_filename ⇒ Object
16 17 18 |
# File 'lib/awestruct/maruku_file.rb', line 16 def output_filename File.basename( self.source_path, '.md' ) + output_extension end |