Class: NumbersAndWords::Translations::Tr

Inherits:
Base
  • Object
show all
Includes:
Families::Latin
Defined in:
lib/numbers_and_words/translations/tr.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, #micro_separator, #teens, #tens, #tens_with_ones, #union

Methods inherited from Base

#t

Instance Method Details

#hundreds(number, options = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/numbers_and_words/translations/tr.rb', line 8

def hundreds(number, options = {})
  if number == 1
    [t([options[:prefix], :hundreds].join('.'))].join options[:separator] || ' '
  else
    [t(:ones)[number], t([options[:prefix], :hundreds].join('.'))].join options[:separator] || ' '
  end
end