Class: NumbersAndWords::Translations::Et

Inherits:
Base
  • Object
show all
Includes:
Families::Latin
Defined in:
lib/numbers_and_words/translations/et.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, #tens, #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/et.rb', line 14

def hundreds number, options = {}
  options[:separator] = ''
  super number, options
end

#tens_with_ones(numbers, options = {}) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/numbers_and_words/translations/et.rb', line 6

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