Class: NumbersAndWords::Translations::Tr
Constant Summary
Constants inherited
from Base
Base::I18N_NAMESPACE
Instance Method Summary
collapse
#ones, #zero
#mega, #megs, #teens, #tens, #union, #union_separator
Methods inherited from Base
#t
Instance Method Details
#hundreds(number, options = {}) ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/numbers_and_words/translations/tr.rb', line 10
def hundreds(number, options = {})
if number == 1
[t([options[:prefix], :hundreds].join('.'))].join options[:separator] || ' '
else
[t(:ones)[number], t([options[:prefix], :hundreds].join('.'))].join options[:separator] || ' '
end
end
|
#tens_with_ones(numbers, _options = {}) ⇒ Object
6
7
8
|
# File 'lib/numbers_and_words/translations/tr.rb', line 6
def tens_with_ones(numbers, _options = {})
super numbers, separator: ' '
end
|