Class: NumbersAndWords::Translations::Lt
Constant Summary
Constants inherited
from Base
Base::I18N_NAMESPACE
Instance Method Summary
collapse
#ones, #zero
#mega, #megs, #teens, #union, #union_separator
Methods inherited from Base
#t
Instance Method Details
#hundreds(number, options = {}) ⇒ Object
14
15
16
17
|
# File 'lib/numbers_and_words/translations/lt.rb', line 14
def hundreds(number, options = {})
options[:is_hundred] = false if options[:is_hundred].nil?
options[:is_hundred] ? t(:one_hundred) : t(:hundreds)[number - 1]
end
|
#tens(number, _options = {}) ⇒ Object
6
7
8
|
# File 'lib/numbers_and_words/translations/lt.rb', line 6
def tens(number, _options = {})
super(number)
end
|
#tens_with_ones(numbers, _options = {}) ⇒ Object
10
11
12
|
# File 'lib/numbers_and_words/translations/lt.rb', line 10
def tens_with_ones(numbers, _options = {})
[tens(numbers[1], alone: false), ones(numbers[0])].join ' '
end
|