Sha256: 19ef2e4f83f112f8816c8da7c0a96a12d8100b90b8cfe1573f67a1d5c167f73b
Contents?: true
Size: 566 Bytes
Versions: 8
Compression:
Stored size: 566 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Formatters class DateFormatter < DateTimeFormatter def initialize(options = {}) locale = extract_locale(options) cache_key = TwitterCldr::Utils.compute_cache_key("date", locale, options[:calendar_type]) @tokenizer = tokenizer_cache[cache_key] ||= TwitterCldr::Tokenizers::DateTokenizer.new( :locale => locale, :calendar_type => options[:calendar_type] ) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems