Method: Decisive::StreamCSVContext#each
- Defined in:
- lib/decisive/stream_csv_context.rb
#each {|header| ... } ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/decisive/stream_csv_context.rb', line 22 def each yield header records.map do |record| row = columns.map do |column| column.block.call(record).to_s end yield row end end |