Class: Jekyll::LayoutReader
- Inherits:
-
Object
- Object
- Jekyll::LayoutReader
- Defined in:
- lib/jekyll/readers/layout_reader.rb
Instance Attribute Summary collapse
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
-
#initialize(site) ⇒ LayoutReader
constructor
A new instance of LayoutReader.
- #layout_directory ⇒ Object
- #read ⇒ Object
Constructor Details
#initialize(site) ⇒ LayoutReader
Returns a new instance of LayoutReader.
4 5 6 7 |
# File 'lib/jekyll/readers/layout_reader.rb', line 4 def initialize(site) @site = site @layouts = {} end |
Instance Attribute Details
#site ⇒ Object (readonly)
Returns the value of attribute site.
3 4 5 |
# File 'lib/jekyll/readers/layout_reader.rb', line 3 def site @site end |
Instance Method Details
#layout_directory ⇒ Object
17 18 19 |
# File 'lib/jekyll/readers/layout_reader.rb', line 17 def layout_directory @layout_directory ||= (layout_directory_in_cwd || layout_directory_inside_source) end |