Sha256: b218f75a01aa8d0f906bba663144de9c55653f38db976ce1239bb7ea8a357c91

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

module TwitterCldr
  module Js
    module Renderers
      module Data
        module Shared

          class ListRenderer < TwitterCldr::Js::Renderers::Base

            def formats
              TwitterCldr.get_locale_resource(@locale, :lists)[@locale][:lists][:default]
            end

            def get_data
              {
                :ListFormatter => {
                  :formats => formats()
                }
              }
            end

          end

        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter_cldr_js-3.3.0 lib/twitter_cldr/js/renderers/data/shared/list_renderer.rb
twitter_cldr_js-3.2.0 lib/twitter_cldr/js/renderers/data/shared/list_renderer.rb
twitter_cldr_js-3.1.1 lib/twitter_cldr/js/renderers/data/shared/list_renderer.rb
twitter_cldr_js-3.1.0 lib/twitter_cldr/js/renderers/data/shared/list_renderer.rb