Sha256: 7f3fb17a239670b6fd6a00c25559d46613ac7d8eb405735e7853c2aba5351406

Contents?: true

Size: 665 Bytes

Versions: 3

Compression:

Stored size: 665 Bytes

Contents

# encoding: UTF-8

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

module TwitterCldr
  module Js
    module Renderers
      module Shared
        class CurrenciesRenderer < TwitterCldr::Js::Renderers::Base
          self.template_file = File.expand_path(File.join(File.dirname(__FILE__), "../..", "mustache/shared/currencies.coffee"))

          def currencies
            TwitterCldr::Shared::Currencies.countries.inject({}) do |ret, country_name|
              ret[country_name] = TwitterCldr::Shared::Currencies.for_country(country_name)
              ret
            end.to_json
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
twitter_cldr_js-1.0.0 lib/twitter_cldr/js/renderers/shared/currencies_renderer.rb
twitter_cldr-1.8.0 js/lib/renderers/shared/currencies_renderer.rb
twitter_cldr-1.7.0 js/lib/renderers/shared/currencies_renderer.rb