module IntlPhonePicker
Constants
- AVAILABLE_LANGAGES
- INTL_CLASS_NAME
- VERSION
Public Class Methods
intl_class_name()
click to toggle source
# File lib/intl_phone_picker.rb, line 14 def intl_class_name "#{IntlPhonePicker::INTL_CLASS_NAME}#{IntlPhonePicker::langage_to_use}" end
langage_to_use()
click to toggle source
# File lib/intl_phone_picker.rb, line 10 def langage_to_use I18n.locale && I18n.locale.to_s.in?(IntlPhonePicker::AVAILABLE_LANGAGES) ? I18n.locale.to_s : 'us' end
options_keys_to_sym(options)
click to toggle source
# File lib/intl_phone_picker.rb, line 18 def options_keys_to_sym options ActiveSupport::HashWithIndifferentAccess.new options end