Sha256: f9f5acaddf1758a478c8b5ae7b00549a568180122daf754129b5d1ecd17946a0
Contents?: true
Size: 468 Bytes
Versions: 5
Compression:
Stored size: 468 Bytes
Contents
module Bunto 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 do |_, collection| collection.read unless SPECIAL_COLLECTIONS.include?(collection.label) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems