lib/nanoc/base/repos/dependency_store.rb in nanoc-4.8.5 vs lib/nanoc/base/repos/dependency_store.rb in nanoc-4.8.6

- old
+ new

@@ -3,12 +3,12 @@ module Nanoc::Int # @api private class DependencyStore < ::Nanoc::Int::Store include Nanoc::Int::ContractsSupport - attr_accessor :items - attr_accessor :layouts + attr_reader :items + attr_reader :layouts contract Nanoc::Int::ItemCollection, Nanoc::Int::LayoutCollection, Nanoc::Int::Configuration, C::KeywordArgs[site: C::Optional[C::Maybe[Nanoc::Int::Site]]] => C::Any def initialize(items, layouts, config, site: nil) super(Nanoc::Int::Store.tmp_path_for(site: site, store_name: 'dependencies'), 5) @@ -138,10 +138,10 @@ end protected def obj2ref(obj) - obj && obj.reference + obj&.reference end def ref2obj(reference) if reference @refs2objs[reference]