Class: Awestruct::FrontMatterFile
- Inherits:
-
RenderableFile
- Object
- OpenStruct
- Renderable
- RenderableFile
- Awestruct::FrontMatterFile
- Defined in:
- lib/awestruct/front_matter_file.rb
Direct Known Subclasses
AsciiDocFile, ErbFile, HamlFile, MarkdownFile, OrgmodeFile, ReStructuredTextFile, TextileFile
Instance Attribute Summary (collapse)
-
- (Object) front_matter
readonly
Returns the value of attribute front_matter.
-
- (Object) raw_page_content
readonly
Returns the value of attribute raw_page_content.
Attributes inherited from Renderable
Instance Method Summary (collapse)
-
- (FrontMatterFile) initialize(site, source_path, relative_source_path, options = {})
constructor
A new instance of FrontMatterFile.
Methods inherited from RenderableFile
#output_extension, #output_filename, #render
Methods inherited from Renderable
Constructor Details
- (FrontMatterFile) initialize(site, source_path, relative_source_path, options = {})
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
- (Object) front_matter (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 |
- (Object) raw_page_content (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 |