class Jekyll::CollectionReader

Constants

SPECIAL_COLLECTIONS

Attributes

content[R]
site[R]

Public Class Methods

new(site) click to toggle source
# File lib/jekyll/readers/collection_reader.rb, line 9
def initialize(site)
  @site = site
  @content = {}
end

Public Instance Methods

read() click to toggle source

Read in all collections specified in the configuration

Returns nothing.

# File lib/jekyll/readers/collection_reader.rb, line 17
def read
  site.collections.each_value do |collection|
    collection.read unless SPECIAL_COLLECTIONS.include?(collection.label)
  end
end