Sha256: 251de90b50c34ce6ec5e0dd4a5b3ea521ce4682694924c6516b36e07a4e9a3a7
Contents?: true
Size: 533 Bytes
Versions: 25
Compression:
Stored size: 533 Bytes
Contents
# frozen_string_literal: true module Nanoc::Int class InMemDataSource < Nanoc::DataSource attr_reader :items attr_reader :layouts def initialize(items, layouts, orig_data_source = nil) super({}, '/', '/', {}) @items = items @layouts = layouts @orig_data_source = orig_data_source end def item_changes @orig_data_source ? @orig_data_source.item_changes : super end def layout_changes @orig_data_source ? @orig_data_source.layout_changes : super end end end
Version data entries
25 entries across 25 versions & 1 rubygems