Sha256: a0229aa89095bec3f630d334ca3d5f7c7def36fa8e3b2e597047175c58291c76

Contents?: true

Size: 666 Bytes

Versions: 4

Compression:

Stored size: 666 Bytes

Contents

# encoding: UTF-8

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

module TwitterCldr
  module Js
    module Renderers
      module Parsers

        class NumberParser < TwitterCldr::Js::Renderers::Base
          set_template "mustache/parsers/number_parser.coffee"

          def group_separator
            Regexp.escape(parser.send(:group_separator))
          end

          def decimal_separator
            Regexp.escape(parser.send(:decimal_separator))
          end

          private

          def parser
            @parser = TwitterCldr::Parsers::NumberParser.new(locale)
          end
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter_cldr_js-2.4.0 lib/twitter_cldr/js/renderers/parsers/number_parser.rb
twitter_cldr_js-2.3.2 lib/twitter_cldr/js/renderers/parsers/number_parser.rb
twitter_cldr_js-2.3.1 lib/twitter_cldr/js/renderers/parsers/number_parser.rb
twitter_cldr_js-2.3.0 lib/twitter_cldr/js/renderers/parsers/number_parser.rb