Sha256: 2b2dd6a7e44cf7ff629486f5496c2297aad5fbc8849fdf0761d8a83e7da91ee8

Contents?: true

Size: 800 Bytes

Versions: 4

Compression:

Stored size: 800 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 Numbers
          module RBNF

            class NumberDataReaderRenderer < TwitterCldr::Js::Renderers::Base

              def resource
                TwitterCldr.supported_locales.inject({}) do |result, locale|
                  result[locale] = TwitterCldr.get_locale_resource(locale, :numbers)
                  result
                end
              end

              def get_data
                {
                  :NumberDataReader => {
                    :resource => resource()
                  }
                }
              end

            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/numbers/rbnf/number_data_reader_renderer.rb
twitter_cldr_js-3.2.0 lib/twitter_cldr/js/renderers/data/numbers/rbnf/number_data_reader_renderer.rb
twitter_cldr_js-3.1.1 lib/twitter_cldr/js/renderers/data/numbers/rbnf/number_data_reader_renderer.rb
twitter_cldr_js-3.1.0 lib/twitter_cldr/js/renderers/data/numbers/rbnf/number_data_reader_renderer.rb