Sha256: a53bc7b38f674d597951efcd63ea68eda4f6a7df2b6b374799f63307f2ff98ec

Contents?: true

Size: 867 Bytes

Versions: 19

Compression:

Stored size: 867 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

module TwitterCldr
  module DataReaders
    class DateTimeDataReader < CalendarDataReader

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

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

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

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

      protected

      def gather_options
        {
          :type => type,
          :calendar_type => calendar_type
        }
      end

      def path_for(type, calendar_type)
        [:calendars, calendar_type, :formats, :datetime]
      end

    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/twitter_cldr-3.2.1/lib/twitter_cldr/data_readers/date_time_data_reader.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/twitter_cldr-3.2.1/lib/twitter_cldr/data_readers/date_time_data_reader.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/twitter_cldr-3.1.2/lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.2.1 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.2.0 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.1.2 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.1.1 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.1.0 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.10 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.9 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.8 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.7 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.6 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.5 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.4 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.3 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.2 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.1 lib/twitter_cldr/data_readers/date_time_data_reader.rb
twitter_cldr-3.0.0 lib/twitter_cldr/data_readers/date_time_data_reader.rb