Module: OLD::SITE
- Defined in:
- lib/locale.rb
Constant Summary collapse
- CN =
:cn- EN =
:www- ES =
:es- FR =
:fr- JP =
:ja- KO =
:ko- PL =
:pl- RU =
:ru- TH =
:th
Class Method Summary collapse
Class Method Details
.all ⇒ Object
13 14 15 16 17 |
# File 'lib/locale.rb', line 13 def self.all self.constants.map do |name| self.const_get(name) end end |
.create(obj) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/locale.rb', line 19 def self.create(obj) map = { "cn" => CN, "en" => EN, "es" => ES, "fr" => FR, "jp" => JP, "ko" => KO, "pl" => PL, "ru" => RU, "th" => TH } map[obj] end |