Sha256: 252bab1566dde4216acda0dc70945888367caa0486ec91f44cbd25ecfa68039c
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true module Nanoc::Int class AggregateDataSource < Nanoc::DataSource def initialize(data_sources, config) super({}, '/', '/', {}) @data_sources = data_sources @config = config end def items @_items ||= begin objs = @data_sources.flat_map(&:items) Nanoc::Int::IdentifiableCollection.from(objs, @config) end end def layouts @_layouts ||= begin objs = @data_sources.flat_map(&:layouts) Nanoc::Int::IdentifiableCollection.from(objs, @config) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.7.12 | lib/nanoc/base/repos/aggregate_data_source.rb |
nanoc-4.7.11 | lib/nanoc/base/repos/aggregate_data_source.rb |
nanoc-4.7.10 | lib/nanoc/base/repos/aggregate_data_source.rb |