Method: Jekyll::Collection#initialize
- Defined in:
- lib/jekyll/collection.rb
#initialize(site, label) ⇒ Collection
Create a new Collection.
site - the site to which this collection belongs. label - the name of the collection
Returns nothing.
14 15 16 17 18 |
# File 'lib/jekyll/collection.rb', line 14 def initialize(site, label) @site = site @label = sanitize_label(label) @metadata = end |