Class: NumbersAndWords::Translations::Cs
Constant Summary
Constants inherited
from Base
Base::I18N_NAMESPACE
Instance Method Summary
collapse
#micro, #micro_prefix, #micros
#mega, #megs, #micro_separator, #union
Methods inherited from Base
#t
Instance Method Details
#hundreds(number, options = {}) ⇒ Object
27
28
29
|
# File 'lib/numbers_and_words/translations/cs.rb', line 27
def hundreds(number, options = {})
t([options[:prefix], :hundreds, gender_to_use(options)].join('.'))[number]
end
|
#integral(number, _options = {}) ⇒ Object
31
32
33
|
# File 'lib/numbers_and_words/translations/cs.rb', line 31
def integral(number, _options = {})
t(:integral, count: number)
end
|
#ones(number, options = {}) ⇒ Object
11
12
13
|
# File 'lib/numbers_and_words/translations/cs.rb', line 11
def ones(number, options = {})
t([options[:prefix], :ones, options[:gender]].join('.'))[number]
end
|
#teens(numbers, options = {}) ⇒ Object
19
20
21
|
# File 'lib/numbers_and_words/translations/cs.rb', line 19
def teens(numbers, options = {})
t([options[:prefix], :teens, gender_to_use(options)].join('.'))[numbers[0]]
end
|
#tens(number, options = {}) ⇒ Object
15
16
17
|
# File 'lib/numbers_and_words/translations/cs.rb', line 15
def tens(number, options = {})
t([options[:prefix], :tens, gender_to_use(options)].join('.'))[number]
end
|
#tens_with_ones(numbers, options = {}) ⇒ Object
23
24
25
|
# File 'lib/numbers_and_words/translations/cs.rb', line 23
def tens_with_ones(numbers, options = {})
[tens(numbers[1], options), ones(numbers[0], options)].join(' ')
end
|
#zero(options = {}) ⇒ Object
7
8
9
|
# File 'lib/numbers_and_words/translations/cs.rb', line 7
def zero(options = {})
ones(0, options)
end
|