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