Sha256: cb140198d2b3d3d41da20d4055ef83c81a9b4b54017be4fa032be6f3dcef56fe
Contents?: true
Size: 682 Bytes
Versions: 4
Compression:
Stored size: 682 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Js module Renderers module Implementation module Shared class PhoneCodesRenderer < TwitterCldr::Js::Renderers::Base set_template "mustache/implementation/shared/phone_codes.coffee" def phone_codes TwitterCldr::Shared::PhoneCodes.territories.inject({}) do |ret, country_code| ret[country_code] = TwitterCldr::Shared::PhoneCodes.code_for_territory(country_code) ret end.to_json end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems