Class: Dimples::Entries::Layout

Inherits:
Base
  • Object
show all
Defined in:
lib/dimples/entries/layout.rb

Overview

A class for a single layout used on a site.

Constant Summary

Constants inherited from Base

Base::FRONT_MATTER_PATTERN

Instance Attribute Summary

Attributes inherited from Base

#contents, #metadata, #path, #rendered_contents

Instance Method Summary collapse

Methods inherited from Base

#method_missing, #output_directory, #parse_metadata, #render, #respond_to_missing?, #template, #write

Constructor Details

#initialize(site:, path:) ⇒ Layout

Returns a new instance of Layout.



7
8
9
# File 'lib/dimples/entries/layout.rb', line 7

def initialize(site:, path:)
  super(site: site, source: Pathname.new(path))
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Dimples::Entries::Base