Method: EachBatch::BatchEnumerator#each_record
- Defined in:
- lib/each_batch/batch_enumerator.rb
#each_record(&block) ⇒ Object
79 80 81 82 83 |
# File 'lib/each_batch/batch_enumerator.rb', line 79 def each_record(&block) return to_enum(:each_record) unless block_given? each { |yielded_relation| yielded_relation.to_a.each(&block) } end |