Sha256: 06baaed345d355cc4f42acddc268254c8ce29c0371e0d9f4e50d15a78b8ae297
Contents?: true
Size: 515 Bytes
Versions: 8
Compression:
Stored size: 515 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.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
8 entries across 8 versions & 1 rubygems