Sha256: ca9411c54c947df6b9e03dc56f0c3727fe1eb4723f2b58062d689aa3d11652f8
Contents?: true
Size: 670 Bytes
Versions: 6
Compression:
Stored size: 670 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.currency_codes.inject({}) do |ret, currency_code| ret[currency_code] = TwitterCldr::Shared::Currencies.for_code(currency_code) ret end.to_json end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems