Class: NumbersAndWords::Translations::Lv

Inherits:
Base
  • Object
show all
Includes:
Families::Latin
Defined in:
lib/numbers_and_words/translations/lv.rb

Constant Summary

Constants inherited from Base

Base::I18N_NAMESPACE

Instance Method Summary collapse

Methods included from Families::Latin

#ones, #zero

Methods included from Families::Base

#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/lv.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/lv.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/lv.rb', line 10

def tens_with_ones numbers, options = {}
  [tens(numbers[1], :alone => false), ones(numbers[0])].join ' '
end