Class: CommonLib::TranslationTable
- Inherits:
-
Object
- Object
- CommonLib::TranslationTable
show all
- Defined in:
- lib/common_lib/translation_table.rb
Class Method Summary
collapse
Class Method Details
.[](key = nil) ⇒ Object
3
4
5
|
# File 'lib/common_lib/translation_table.rb', line 3
def self.[](key=nil)
short(key) || short(key.to_s.downcase) || value(key) || nil
end
|
.selector_options ⇒ Object
17
18
19
20
|
# File 'lib/common_lib/translation_table.rb', line 17
def self.selector_options
table.collect{|x| [x[:long],x[:value]] }
end
|
.valid_values ⇒ Object
11
12
13
14
|
# File 'lib/common_lib/translation_table.rb', line 11
def self.valid_values
table.collect{ |x| x[:value] }
end
|