Class: Awestruct::OrgmodeFile
- Inherits:
-
FrontMatterFile
- Object
- OpenStruct
- Renderable
- RenderableFile
- FrontMatterFile
- Awestruct::OrgmodeFile
- Includes:
- Orgmodeable
- Defined in:
- lib/awestruct/orgmode_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.
10 11 12 |
# File 'lib/awestruct/orgmode_file.rb', line 10 def initialize(site, source_path, relative_source_path, = {}) super( site, source_path, relative_source_path, ) end |
Instance Method Details
#output_extension ⇒ Object
18 19 20 |
# File 'lib/awestruct/orgmode_file.rb', line 18 def output_extension '.html' end |
#output_filename ⇒ Object
14 15 16 |
# File 'lib/awestruct/orgmode_file.rb', line 14 def output_filename File.basename( self.source_path, '.org' ) + output_extension end |