Class: Mint::Layout

Inherits:
Resource show all
Defined in:
lib/mint/layout.rb

Instance Attribute Summary

Attributes inherited from Resource

#destination, #name, #root, #source, #type

Instance Method Summary collapse

Methods inherited from Resource

#destination_directory, #destination_directory_path, #destination_file, #destination_file_path, #equal?, #render, #renderer=, #root_directory, #root_directory_path, #source_directory, #source_directory_path, #source_file, #source_file_path

Constructor Details

#initialize(source, opts = Mint.default_options) ⇒ Layout

Creates a new Layout object using a mandatory source file and optional configuration options.

Parameters:

  • source (String)

    the absolute or relative file path

  • opts (Hash, #[]) (defaults to: Mint.default_options)

    layout options


10
11
12
13
# File 'lib/mint/layout.rb', line 10

def initialize(source, opts=Mint.default_options)
  super(source, opts)
  self.type = :layout
end