Class: Awestruct::OrgModeFile
- Inherits:
-
FrontMatterFile
- Object
- OpenStruct
- Renderable
- RenderableFile
- FrontMatterFile
- Awestruct::OrgModeFile
- Includes:
- OrgModeable
- Defined in:
- lib/awestruct/org_mode_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 = {}) ⇒ OrgModeFile
constructor
A new instance of OrgModeFile.
- #output_extension ⇒ Object
- #output_filename ⇒ Object
Methods included from OrgModeable
Methods inherited from RenderableFile
Methods inherited from Renderable
Constructor Details
#initialize(site, source_path, relative_source_path, options = {}) ⇒ OrgModeFile
Returns a new instance of OrgModeFile.
11 12 13 |
# File 'lib/awestruct/org_mode_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/org_mode_file.rb', line 19 def output_extension '.html' end |
#output_filename ⇒ Object
15 16 17 |
# File 'lib/awestruct/org_mode_file.rb', line 15 def output_filename File.basename( self.source_path, '.org' ) + output_extension end |