# File 'lib/mongo_batch.rb', line 38defself.in_batches(query,options={})Batcher.new(query,options).batchesend
Instance Method Details
#find_in_batches(options = {}, &block) ⇒ Object
42
43
44
45
46
47
48
49
50
# File 'lib/mongo_batch.rb', line 42deffind_in_batches(options={},&block)batcher=Batcher.new(self,options)ifblockbatcher.batches.each(&block)elsebatcher.batchesendend