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
|
include Enumerable
|
||||||
def each
|
def each
|
||||||
return Enumerator.new self, :each unless e
|
return Enumerator.new self, :each unless block_given?
|
||||||
(@source.keys + @data.keys).each do |key|
|
(@source.keys + @data.keys).each do |key|
|
||||||
yield key, self[key]
|
yield key, self[key]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue