Cache#each added.

This commit is contained in:
Denis Knauf 2010-03-30 01:22:48 +02:00
parent 3e9022a677
commit 8b77d3811b

View file

@ -45,13 +45,14 @@ class LogAn::Cache
define_singleton_method :[]=, method( type ? :oset : :dset) define_singleton_method :[]=, method( type ? :oset : :dset)
end end
#include Enumerable include Enumerable
#def each &e def each
#return Enumerator.new self, :each unless e return Enumerator.new self, :each unless e
#flush! (@source.keys + @data.keys).each do |key|
#@source.each &e yield key, self[key]
#self end
#end self
end
end end
class LogAn::AutoValueConvertHash class LogAn::AutoValueConvertHash