class Bunto::CollectionReader
Constants
- SPECIAL_COLLECTIONS
Attributes
content[R]
site[R]
Public Class Methods
new(site)
click to toggle source
# File lib/bunto/readers/collection_reader.rb, line 6 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/bunto/readers/collection_reader.rb, line 14 def read site.collections.each do |_, collection| collection.read unless SPECIAL_COLLECTIONS.include?(collection.label) end end