Sha256: 56ab4698807947993ed922a77e98bef7227416409388bdc5ff6c2c5d6cff4e77
Contents?: true
Size: 524 Bytes
Versions: 17
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true require 'csv' require 'eac_ruby_utils/core_ext' require 'eac_cli/runner_with/output_item/base_formatter' module EacCli module RunnerWith module OutputItem class CsvFormatter < ::EacCli::RunnerWith::OutputItem::BaseFormatter COLUMNS = %w[key value].freeze # @return [String] def to_output ::CSV.generate do |csv| csv << COLUMNS item_hash.each { |k, v| csv << [k, v] } end end end end end end
Version data entries
17 entries across 17 versions & 2 rubygems