Sha256: dc4796b394888214574dbd688d44441d74e337ac0e381d91d57cfee0210648ca
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 Bytes
Contents
require 'csv' module Squib::Args class CSV_Opts def initialize(opts) opts = opts.keep_if { |k, _v| CSV::DEFAULT_OPTIONS.key? k} @hash = CSV::DEFAULT_OPTIONS.merge(opts).merge(required) end def to_hash @hash end private def required { headers: true, converters: :numeric } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
squib-0.19.0 | lib/squib/args/csv_opts.rb |
squib-0.19.0b | lib/squib/args/csv_opts.rb |
squib-0.19.0a | lib/squib/args/csv_opts.rb |