Method: Phonelib::PhoneFormatter#country_code
- Defined in:
- lib/phonelib/phone_formatter.rb
#country_code ⇒ String
Returns the country code from the original phone number.
34 35 36 37 |
# File 'lib/phonelib/phone_formatter.rb', line 34 def country_code @country_code ||= Phonelib.phone_data[country] && \ Phonelib.phone_data[country][Core::COUNTRY_CODE] end |