Sha256: 5ecebfcd8c37761ac4ba4ee495991a738825ca41dcaaa83872ce5f1db70a290a

Contents?: true

Size: 848 Bytes

Versions: 4

Compression:

Stored size: 848 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 RBNFRenderer < TwitterCldr::Js::Renderers::Base

              def resource
                {
                  locale.to_sym => TwitterCldr.resources.get_locale_resource(locale, "rbnf")[locale][:rbnf][:grouping]
                }
              end

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

            end

            autoload :NumberDataReaderRenderer, 'twitter_cldr/js/renderers/data/numbers/rbnf/number_data_reader_renderer'

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