lib/twitter_cldr/data_readers/date_data_reader.rb
# encoding: UTF-8
# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0
module TwitterCldr
module DataReaders
class DateDataReader < CalendarDataReader
def tokenizer
@tokenizer ||= TwitterCldr::Tokenizers::DateTokenizer.new(self)
end
def formatter
@formatter ||= TwitterCldr::Formatters::DateTimeFormatter.new(self)
end
protected
def path_for(type, calendar_type)
[:calendars, calendar_type, :formats, :date]
end
end
end
end