Module: AdHocTemplate::RecordReader::TSVReader
- Defined in:
- lib/ad_hoc_template/record_reader.rb
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.dump(config_data, col_sep = ) ⇒ Object
174 175 176 |
# File 'lib/ad_hoc_template/record_reader.rb', line 174 def self.dump(config_data, col_sep=COL_SEP[:tsv]) CSVReader.dump(config_data, col_sep) end |
.read_record(tsv_data, config = { tsv: nil }) ⇒ Object
169 170 171 172 |
# File 'lib/ad_hoc_template/record_reader.rb', line 169 def self.read_record(tsv_data, config={ tsv: nil }) config = { tsv: config } if config.kind_of? String CSVReader.read_record(tsv_data, config) end |