class NumbersAndWords::Translations::De

Constants

DEFAULT_POSTFIX

Public Instance Methods

hundreds(number, _options = {}) click to toggle source
# File lib/numbers_and_words/translations/de.rb, line 17
def hundreds(number, _options = {})
  [ones(number), t(:hundreds)].join
end
ones(number, options = {}) click to toggle source
# File lib/numbers_and_words/translations/de.rb, line 9
def ones(number, options = {})
  t([options[:prefix], :ones, options[:postfix] || DEFAULT_POSTFIX].join('.'))[number]
end
tens_with_ones(numbers, options = {}) click to toggle source
# File lib/numbers_and_words/translations/de.rb, line 13
def tens_with_ones(numbers, options = {})
  [tens(numbers[1]), ones(numbers[0], options)].reverse.join(union)
end
zero(_options = {}) click to toggle source
# File lib/numbers_and_words/translations/de.rb, line 21
def zero(_options = {})
  ones 0
end