Sha256: a97d2e42b1c8c5d568e507a798a3e493e15de28f17c3f1be0449aecb4ec1acf6

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

module Jekyll
  class CollectionReader
    SPECIAL_COLLECTIONS = %w(posts data).freeze

    attr_reader :site, :content
    def initialize(site)
      @site = site
      @content = {}
    end

    # Read in all collections specified in the configuration
    #
    # Returns nothing.
    def read
      site.collections.each_value do |collection|
        collection.read unless SPECIAL_COLLECTIONS.include?(collection.label)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ngage-0.0.0 lib/ngage/jekyll/readers/collection_reader.rb