lib/nanoc/base/repos/compiled_content_cache.rb in nanoc-4.8.5 vs lib/nanoc/base/repos/compiled_content_cache.rb in nanoc-4.8.6
- old
+ new
@@ -24,18 +24,17 @@
def [](rep)
item_cache = @cache[rep.item.identifier] || {}
item_cache[rep.name]
end
- contract Nanoc::Int::ItemRep, C::HashOf[Symbol => Nanoc::Int::Content] => self
+ contract Nanoc::Int::ItemRep, C::HashOf[Symbol => Nanoc::Int::Content] => C::HashOf[Symbol => Nanoc::Int::Content]
# Sets the compiled content for the given representation.
#
# This cached compiled content is a hash where the keys are the snapshot
# names. and the values the compiled content at the given snapshot.
def []=(rep, content)
@cache[rep.item.identifier] ||= {}
@cache[rep.item.identifier][rep.name] = content
- self
end
protected
def data