lib/nanoc/base/entities/identifiable_collection.rb in nanoc-4.7.5 vs lib/nanoc/base/entities/identifiable_collection.rb in nanoc-4.7.6

- old
+ new

@@ -79,25 +79,23 @@ raise ArgumentError, "don’t know how to fetch objects by #{arg.inspect}" end end contract C::Any => C::Maybe[C::RespondTo[:identifier]] - def get_memoized(arg) + memoized def get_memoized(arg) get_unmemoized(arg) end - memoize :get_memoized contract C::Any => C::IterOf[C::RespondTo[:identifier]] def find_all_unmemoized(arg) pat = Nanoc::Int::Pattern.from(arg) select { |i| pat.match?(i.identifier) } end contract C::Any => C::IterOf[C::RespondTo[:identifier]] - def find_all_memoized(arg) + memoized def find_all_memoized(arg) find_all_unmemoized(arg) end - memoize :find_all_memoized def object_with_identifier(identifier) if frozen? @mapping[identifier.to_s] else