Class: Reading::Parsing::Rows::Regular::EndDates

Inherits:
Column show all
Defined in:
lib/reading/parsing/rows/regular_columns/end_dates.rb

Overview

Constant Summary

Constants inherited from Column

Column::SHARED_REGEXES

Class Method Summary collapse

Methods inherited from Column

column_name, flatten_into_arrays, regexes_before_formats, segment_group_separator, split_by_format?, split_by_segment?, split_by_segment_group?, to_sym, tweaks

Class Method Details

.regexes(segment_index) ⇒ Object



11
12
13
14
15
# File 'lib/reading/parsing/rows/regular_columns/end_dates.rb', line 11

def self.regexes(segment_index)
  [%r{\A
    (?<date>\d{4}/\d\d?/\d\d?)
  \z}x]
end

.segment_separatorObject



7
8
9
# File 'lib/reading/parsing/rows/regular_columns/end_dates.rb', line 7

def self.segment_separator
  /,\s*/
end