Sha256: 25cfdf8d04f698d6c5c81be0c63ebb6ec4afcf97397404c23ea2182b078168b1
Contents?: true
Size: 601 Bytes
Versions: 20
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true require 'csv' require 'eac_ruby_utils/core_ext' require 'eac_cli/runner_with/output_list/base_formatter' module EacCli module RunnerWith module OutputList class CsvFormatter < ::EacCli::RunnerWith::OutputList::BaseFormatter # @return [Array] def build_row(row) build_columns.map { |c| row.send(c) } end # @return [String] def to_output ::CSV.generate do |csv| csv << build_columns build_rows.each { |row| csv << row } end end end end end end
Version data entries
20 entries across 20 versions & 2 rubygems