module SunDawg::LanguageIsoTranslater
Constants
- FILE
allows client application to override YAML hash
- LANGUAGES
Public Class Methods
get_iso_639_1_translation(code)
click to toggle source
O(1) fetch of language properties given the ISO_639_1 2-letter code
# File lib/language_iso_translater.rb, line 13 def self.get_iso_639_1_translation(code) raise NoLanguageError.new("[#{code}] IS NOT VALID") if LANGUAGES[code].nil? LANGUAGES[code] end