Sha256: e4b1fc904e2ceb232e235817662cf8d65920298ba942544b31dc7b79d74248a4

Contents?: true

Size: 493 Bytes

Versions: 4

Compression:

Stored size: 493 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], 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

4 entries across 4 versions & 1 rubygems

Version Path
twitter_cldr-1.9.1 lib/twitter_cldr/localized/localized_timespan.rb
twitter_cldr-1.9.0 lib/twitter_cldr/localized/localized_timespan.rb
twitter_cldr-1.8.1 lib/twitter_cldr/localized/localized_timespan.rb
twitter_cldr-1.8.0 lib/twitter_cldr/localized/localized_timespan.rb