Class: Squib::Args::CSV_Opts
- Inherits:
-
Object
- Object
- Squib::Args::CSV_Opts
- Defined in:
- lib/squib/args/csv_opts.rb
Instance Method Summary collapse
-
#initialize(opts) ⇒ CSV_Opts
constructor
A new instance of CSV_Opts.
- #to_hash ⇒ Object
Constructor Details
#initialize(opts) ⇒ CSV_Opts
Returns a new instance of CSV_Opts.
6 7 8 9 |
# 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 |
Instance Method Details
#to_hash ⇒ Object
11 12 13 |
# File 'lib/squib/args/csv_opts.rb', line 11 def to_hash @hash end |