Class: Dimples::Entries::Layout
- Defined in:
- lib/dimples/entries/layout.rb
Overview
A class for a single layout used on a site.
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
#contents, #metadata, #path, #rendered_contents
Instance Method Summary collapse
-
#initialize(site:, path:) ⇒ Layout
constructor
A new instance of Layout.
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