Class: NumbersAndWords::Translations::Hy

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

Methods inherited from Base

#t

Instance Method Details

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



13
14
15
16
17
18
# File 'lib/numbers_and_words/translations/hy.rb', line 13

def hundreds(number, _options = {})
  parts = [t(:hundreds)]
  parts.unshift(t(:ones)[number]) if number > 1

  parts.join(' ')
end

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



8
9
10
11
# File 'lib/numbers_and_words/translations/hy.rb', line 8

def tens_with_ones(numbers, options = {})
  options[:separator] ||= ''
  super
end