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, 'pipe' => '|', 'thorn' => "\xfe" # high-ascii (lower case thorn) delimited files }
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
17 18 19 20 21 |
# File 'lib/ndr_import/file/delimited.rb', line 17 def initialize(filename, format, = {}) super @options['col_sep'] ||= DELIMITED_COL_SEP[format] end |