Sha256: bed9f260cf638e61843d7e98acb3740cdef141a9fef8a022e4c097e7c31a8b82
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 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 PostalCodesRenderer < TwitterCldr::Js::Renderers::Base set_template "mustache/implementation/shared/postal_codes.coffee" def postal_codes TwitterCldr::Shared::PostalCodes.territories.inject({}) do |ret, country_code| ret[country_code] = TwitterCldr::Shared::PostalCodes.for_territory(country_code).regexp.source ret end.to_json end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems