Class: NumbersAndWords::Translations::FrCh
Constant Summary
Constants inherited
from Base
Base::I18N_NAMESPACE
Instance Method Summary
collapse
#micro, #micro_prefix, #micros
#ones, #zero
#mega, #megs, #micro_separator, #teens, #union
Methods inherited from Base
#t
Instance Method Details
#hundreds(number, options = {}) ⇒ Object
18
19
20
21
22
23
24
25
|
# File 'lib/numbers_and_words/translations/fr-CH.rb', line 18
def hundreds(number, options = {})
count = options[:pluralize] ? number : 1
hundreds = t(:hundreds, count:)
return hundreds if number == 1
[t(:ones)[number], hundreds].join(' ')
end
|
#tens(number, options = {}) ⇒ Object
9
10
11
|
# File 'lib/numbers_and_words/translations/fr-CH.rb', line 9
def tens(number, options = {})
super
end
|
#tens_with_ones(numbers, options = {}) ⇒ Object
13
14
15
16
|
# File 'lib/numbers_and_words/translations/fr-CH.rb', line 13
def tens_with_ones(numbers, options = {})
separator = numbers.first == 1 ? " #{union} " : '-'
super(numbers, options.merge(separator:))
end
|