Sha256: 2706865b06644c2153c66297692c965e1371b04d42c1a6610cb8d20d1f5033c7
Contents?: true
Size: 606 Bytes
Versions: 4
Compression:
Stored size: 606 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 PhoneCodesRenderer < TwitterCldr::Js::Renderers::Base set_template "mustache/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
Version data entries
4 entries across 4 versions & 1 rubygems