From 694d2a22fa6209c52f4956688d1b628a5655e059 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Tue, 30 Mar 2010 01:23:37 +0200 Subject: [PATCH] Cache#each added. --- lib/logan/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logan/cache.rb b/lib/logan/cache.rb index e079c91..31dfd8d 100644 --- a/lib/logan/cache.rb +++ b/lib/logan/cache.rb @@ -47,7 +47,7 @@ class LogAn::Cache include Enumerable def each - return Enumerator.new self, :each unless e + return Enumerator.new self, :each unless block_given? (@source.keys + @data.keys).each do |key| yield key, self[key] end