Class: Jekyll::Strapi::StrapiDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Jekyll::Strapi::StrapiDrop
- Defined in:
- lib/jekyll/strapi/drops.rb
Overview
Main Liquid Drop, handles lazy loading of collections to drops
Instance Method Summary collapse
- #collections ⇒ Object
-
#initialize(site) ⇒ StrapiDrop
constructor
A new instance of StrapiDrop.
Constructor Details
#initialize(site) ⇒ StrapiDrop
Returns a new instance of StrapiDrop.
53 54 55 |
# File 'lib/jekyll/strapi/drops.rb', line 53 def initialize(site) @site = site end |
Instance Method Details
#collections ⇒ Object
57 58 59 |
# File 'lib/jekyll/strapi/drops.rb', line 57 def collections @collections ||= StrapiCollectionsDrop.new(@site.strapi_collections) end |