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
11
12
13
14
15
16
|
# File 'lib/numbers_and_words/translations/hy.rb', line 11
def hundreds(number, _options = {})
parts = [t(:hundreds)]
parts.unshift(t(:ones)[number]) if number > 1
parts.join(' ')
end
|
#tens_with_ones(numbers, options = {}) ⇒ Object
6
7
8
9
|
# File 'lib/numbers_and_words/translations/hy.rb', line 6
def tens_with_ones(numbers, options = {})
options[:separator] ||= ''
super
end
|