Cache#each added.
This commit is contained in:
parent
8b77d3811b
commit
694d2a22fa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue