Class: Awestruct::FrontMatterFile
- Inherits:
-
RenderableFile
- Object
- OpenStruct
- Renderable
- RenderableFile
- Awestruct::FrontMatterFile
- Defined in:
- lib/awestruct/front_matter_file.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#front_matter ⇒ Object
readonly
Returns the value of attribute front_matter.
-
#raw_page_content ⇒ Object
readonly
Returns the value of attribute raw_page_content.
Attributes inherited from Renderable
Instance Method Summary collapse
-
#initialize(site, source_path, relative_source_path, options = {}) ⇒ FrontMatterFile
constructor
A new instance of FrontMatterFile.
Methods inherited from RenderableFile
#output_extension, #output_filename, #render
Methods inherited from Renderable
Constructor Details
#initialize(site, source_path, relative_source_path, options = {}) ⇒ FrontMatterFile
Returns a new instance of FrontMatterFile.
9 10 11 12 13 |
# File 'lib/awestruct/front_matter_file.rb', line 9 def initialize(site, source_path, relative_source_path, = {}) super( site, source_path, relative_source_path, ) @raw_page_content = '' load_page end |
Instance Attribute Details
#front_matter ⇒ Object (readonly)
Returns the value of attribute front_matter.
7 8 9 |
# File 'lib/awestruct/front_matter_file.rb', line 7 def front_matter @front_matter end |
#raw_page_content ⇒ Object (readonly)
Returns the value of attribute raw_page_content.
6 7 8 |
# File 'lib/awestruct/front_matter_file.rb', line 6 def raw_page_content @raw_page_content end |