Class: Dimples::Layout
Overview
A class for a single layout used on a site.
Constant Summary
Constants inherited from Entry
Instance Attribute Summary
Attributes inherited from Entry
#contents, #metadata, #path, #rendered_contents
Instance Method Summary collapse
-
#initialize(site:, path:) ⇒ Layout
constructor
A new instance of Layout.
Methods inherited from Entry
#generate, #method_missing, #output_directory, #parse_metadata, #render, #respond_to_missing?, #template, #to_h, #url, #write
Constructor Details
#initialize(site:, path:) ⇒ Layout
Returns a new instance of Layout.
6 7 8 |
# File 'lib/dimples/layout.rb', line 6 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::Entry