class Squib::Args::CSV_Opts
Public Class Methods
new(opts)
click to toggle source
# File lib/squib/args/csv_opts.rb, line 6 def initialize(opts) opts = opts.keep_if { |k, _v| CSV::DEFAULT_OPTIONS.key? k} @hash = CSV::DEFAULT_OPTIONS.merge(opts).merge(required) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/squib/args/csv_opts.rb, line 11 def to_hash @hash end
Private Instance Methods
required()
click to toggle source
# File lib/squib/args/csv_opts.rb, line 17 def required { headers: true, converters: :numeric } end