Sha256: 301e129ec0414749e0a0fb29666ceb0166d681e0e8aad7cf87f7cc0012c8654c
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Localized class LocalizedTimespan < LocalizedObject def initialize(seconds, options = {}) super(seconds, options[:locale] || TwitterCldr.get_locale, options) end def to_s(options = {}) @formatter.format(@base_obj, options) end protected def formatter_const TwitterCldr::Formatters::TimespanFormatter end end end end
Version data entries
3 entries across 3 versions & 1 rubygems