lib/nanoc/base/entities/document.rb in nanoc-4.6.1 vs lib/nanoc/base/entities/document.rb in nanoc-4.6.2

- old
+ new

@@ -62,9 +62,16 @@ @content.freeze @attributes.freeze self end + contract String => self + def with_identifier_prefix(prefix) + other = dup + other.identifier = @identifier.prefix(prefix) + other + end + contract C::None => String # @abstract # # @return Unique reference to this object def reference