Sha256: 7d6b948c49058685fcfe023f0f5b9e99067cef9c1cd17282a15c8ec424da8a9f

Contents?: true

Size: 874 Bytes

Versions: 4

Compression:

Stored size: 874 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 Parsers

          class NumberParser < TwitterCldr::Js::Renderers::Base

            def group_separator
              parser.send(:group_separator)
            end

            def decimal_separator
              parser.send(:decimal_separator)
            end

            def get_data
              {
                :NumberParser => {
                  :group_separator => group_separator(),
                  :decimal_separator => decimal_separator()
                }
              }
            end

            private

            def parser
              @parser = TwitterCldr::Parsers::NumberParser.new(locale)
            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/parsers/number_parser.rb
twitter_cldr_js-3.2.0 lib/twitter_cldr/js/renderers/data/parsers/number_parser.rb
twitter_cldr_js-3.1.1 lib/twitter_cldr/js/renderers/data/parsers/number_parser.rb
twitter_cldr_js-3.1.0 lib/twitter_cldr/js/renderers/data/parsers/number_parser.rb