class TwitterCldr::DataReaders::DateTimeDataReader
Public Instance Methods
date_reader()
click to toggle source
# File lib/twitter_cldr/data_readers/date_time_data_reader.rb, line 10 def date_reader @date_reader ||= DateDataReader.new(locale, gather_options) end
formatter()
click to toggle source
# File lib/twitter_cldr/data_readers/date_time_data_reader.rb, line 22 def formatter @formatter ||= TwitterCldr::Formatters::DateTimeFormatter.new(self) end
time_reader()
click to toggle source
# File lib/twitter_cldr/data_readers/date_time_data_reader.rb, line 14 def time_reader @time_reader ||= TimeDataReader.new(locale, gather_options) end
tokenizer()
click to toggle source
# File lib/twitter_cldr/data_readers/date_time_data_reader.rb, line 18 def tokenizer @tokenizer ||= TwitterCldr::Tokenizers::DateTimeTokenizer.new(self) end
Protected Instance Methods
gather_options()
click to toggle source
# File lib/twitter_cldr/data_readers/date_time_data_reader.rb, line 28 def gather_options { type: type, calendar_type: calendar_type } end
path_for(type, calendar_type)
click to toggle source
# File lib/twitter_cldr/data_readers/date_time_data_reader.rb, line 35 def path_for(type, calendar_type) [:calendars, calendar_type, :formats, :datetime] end