Class: NumbersAndWords::Translations::Hy
Constant Summary
Constants inherited
from Base
Base::I18N_NAMESPACE
Instance Method Summary
collapse
#ones, #zero
#mega, #megs, #micro_separator, #teens, #tens, #union
Methods inherited from Base
#t
Instance Method Details
#hundreds(number, _options = {}) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/numbers_and_words/translations/hy.rb', line 13
def hundreds(number, _options = {})
parts = [t(:hundreds)]
parts.unshift(t(:ones)[number]) if number > 1
parts.join(' ')
end
|
#tens_with_ones(numbers, options = {}) ⇒ Object
8
9
10
11
|
# File 'lib/numbers_and_words/translations/hy.rb', line 8
def tens_with_ones(numbers, options = {})
options[:separator] ||= ''
super
end
|