Class: TwitterCldr::Js::Renderers::Implementation::Shared::PhoneCodesRenderer
- Inherits:
-
Base
- Object
- Mustache
- Base
- TwitterCldr::Js::Renderers::Implementation::Shared::PhoneCodesRenderer
- Defined in:
- lib/twitter_cldr/js/renderers/implementation/shared/phone_codes_renderer.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from TwitterCldr::Js::Renderers::Base
Instance Method Details
#phone_codes ⇒ Object
14 15 16 17 18 19 |
# File 'lib/twitter_cldr/js/renderers/implementation/shared/phone_codes_renderer.rb', line 14 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 |