module Gaigo::Utilities
Public Instance Methods
check_country_code(code)
click to toggle source
# File lib/gaigo/utilities.rb, line 13 def check_country_code(code) if country = COUNTRIES.get(code) country.code else raise(Exception, "Unacceptable country code: #{code}") end end
check_locale_code(code)
click to toggle source
# File lib/gaigo/utilities.rb, line 5 def check_locale_code(code) if lang = LANGS.get(code) lang.code else raise(Exception, "Unacceptable locale code: #{code}") end end