Class: TwitterCldr::DataReaders::DateTimeDataReader

Inherits:
CalendarDataReader show all
Defined in:
lib/twitter_cldr/data_readers/date_time_data_reader.rb

Constant Summary

Constants inherited from CalendarDataReader

CalendarDataReader::DEFAULT_TYPE, CalendarDataReader::TYPE_PATHS

Instance Attribute Summary

Attributes inherited from CalendarDataReader

#additional_format, #calendar_type, #type

Attributes inherited from DataReader

#locale

Instance Method Summary collapse

Methods inherited from CalendarDataReader

#additional_format_selector, #calendar, #initialize, #pattern, types

Methods inherited from DataReader

#initialize, #pattern_at_path

Constructor Details

This class inherits a constructor from TwitterCldr::DataReaders::CalendarDataReader

Instance Method Details

#date_readerObject



10
11
12
# File 'lib/twitter_cldr/data_readers/date_time_data_reader.rb', line 10

def date_reader
  @date_reader ||= DateDataReader.new(locale, gather_options)
end

#formatterObject



22
23
24
# File 'lib/twitter_cldr/data_readers/date_time_data_reader.rb', line 22

def formatter
  @formatter ||= TwitterCldr::Formatters::DateTimeFormatter.new(self)
end

#time_readerObject



14
15
16
# File 'lib/twitter_cldr/data_readers/date_time_data_reader.rb', line 14

def time_reader
  @time_reader ||= TimeDataReader.new(locale, gather_options)
end

#tokenizerObject



18
19
20
# File 'lib/twitter_cldr/data_readers/date_time_data_reader.rb', line 18

def tokenizer
  @tokenizer ||= TwitterCldr::Tokenizers::DateTimeTokenizer.new(self)
end