lib/sinew/base.rb
# Output a csv row. Row should be any object that can turn into a hash - a
# hash, OpenStruct, etc.
Output a csv row. Row should be any object that can turn into a hash - a
hash, OpenStruct, etc.
Output a csv row . Row should be any object that can turn into a hash - a hash OpenStruct etc .
def csv_emit(row)
      row = row.to_h
      mutex.synchronize do
        csv_header(row.keys) if !csv.started?
        print = csv.emit(row)
        puts print.ai if options[:verbose]
        if csv.count == options[:limit]
          raise LimitError
        end
      end
    end
def csv_emit ( row ) row = row . to_h mutex . synchronize do csv_header ( row . keys ) if ! csv . started? print = csv . emit ( row ) puts print . ai if options [ :verbose ] if csv . count == options [ :limit ] raise LimitError end end end
Output a csv row.
Output a csv row .
# header if necessary # emit # this is caught by Sinew::Main
row
<not_specific>