Sha256: cc3544073ee3e3de41211693c60bceeced50a1cb20ff518e8205e3eb2dc19be0

Contents?: true

Size: 487 Bytes

Versions: 24

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module Bridgetown
  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

24 entries across 24 versions & 1 rubygems

Version Path
bridgetown-core-0.16.0 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.16.0.beta2 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.16.0.beta1 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.15.0 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.15.0.beta4 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.15.0.beta3 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.15.0.beta2 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.15.0.beta1 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.14.1 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.14.0 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.13.0 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.12.1 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.12.0 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.11.2 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.11.1 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.11.0 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.10.2 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.10.1 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.10.0 lib/bridgetown-core/readers/collection_reader.rb
bridgetown-core-0.9.0 lib/bridgetown-core/readers/collection_reader.rb