Class: NumbersAndWords::Translations::Pt
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
10
11
12
13
14
|
# File 'lib/numbers_and_words/translations/pt.rb', line 10
def hundreds(number, options = {})
return t(:one_hundred) if options[:is_one_hundred]
return t(:hundreds)[number] if options[:is_hundred]
[t(:hundreds)[number], union].join(' ')
end
|
#tens_with_ones(numbers, _options = {}) ⇒ Object
6
7
8
|
# File 'lib/numbers_and_words/translations/pt.rb', line 6
def tens_with_ones(numbers, _options = {})
super numbers, separator: " #{union} "
end
|