Sha256: 7c998f3393f7c93429e7d6111e44a7e8800fd1c9499c1a0dd52b3d086c709035
Contents?: true
Size: 1001 Bytes
Versions: 4
Compression:
Stored size: 1001 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Js module Renderers module TestRenderers module TestHelpers class NumbersHelperRenderer < TwitterCldr::Js::Renderers::Base set_template "mustache/test_helpers/numbers_helper.coffee" def global_tokens TwitterCldr.supported_locales.inject({}) do |result, locale| numbers_renderer = TwitterCldr::Js::Renderers::Data::Numbers::NumbersRenderer.new result[locale] = numbers_renderer.tokens_for_locale(locale) result end.to_json end def global_symbols TwitterCldr.supported_locales.inject({}) do |result, locale| result[locale] = DataReaders::NumberDataReader.new(locale).symbols result end.to_json end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems