Sha256: d60bc4a6f1e903a631691474e7480552e76c4d98b33ba6c2e94c93d7ffb55227
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 TimeFormatter < DateTimeFormatter def initialize(options = {}) locale = extract_locale(options) cache_key = TwitterCldr::Utils.compute_cache_key("time", locale, options[:calendar_type]) @tokenizer = tokenizer_cache[cache_key] ||= TwitterCldr::Tokenizers::TimeTokenizer.new( :locale => locale, :calendar_type => options[:calendar_type] ) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems