Class: NdrImport::File::Delimited
- Defined in:
- lib/ndr_import/file/delimited.rb
Overview
This class is a delimited file handler that returns a single table.
Constant Summary collapse
- DELIMITED_COL_SEP =
{ 'csv' => nil }
Instance Method Summary collapse
-
#initialize(filename, format, options = {}) ⇒ Delimited
constructor
A new instance of Delimited.
Methods inherited from Base
Constructor Details
#initialize(filename, format, options = {}) ⇒ Delimited
Returns a new instance of Delimited.
14 15 16 17 18 |
# File 'lib/ndr_import/file/delimited.rb', line 14 def initialize(filename, format, = {}) super @options['col_sep'] ||= DELIMITED_COL_SEP[format] end |