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
15
16
17
18
|
# File 'lib/numbers_and_words/translations/lt.rb', line 15
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
|