lib/nanoc/helpers/breadcrumbs.rb in nanoc-4.12.21 vs lib/nanoc/helpers/breadcrumbs.rb in nanoc-4.13.0

- old
+ new

@@ -31,15 +31,15 @@ raise AmbiguousAncestorError.new(pattern, items) end # e.g. unfold(10.class, &:superclass) # => [Integer, Numeric, Object, BasicObject] - def self.unfold(obj, &blk) + def self.unfold(obj, &) acc = [obj] res = yield(obj) if res - acc + unfold(res, &blk) + acc + unfold(res, &) else acc end end