Class: NumbersAndWords::Translations::Hu

Inherits:
Base
  • Object
show all
Includes:
Extensions::FractionSignificance, Families::Latin
Defined in:
lib/numbers_and_words/translations/hu.rb

Constant Summary

Constants inherited from Base

Base::I18N_NAMESPACE

Instance Method Summary collapse

Methods included from Extensions::FractionSignificance

#micro, #micro_prefix, #micros

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



12
13
14
# File 'lib/numbers_and_words/translations/hu.rb', line 12

def hundreds(number, options = {})
  super number, options.merge(separator: '')
end

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



7
8
9
10
# File 'lib/numbers_and_words/translations/hu.rb', line 7

def tens_with_ones(numbers, options = {})
  ones, tens = numbers
  [t(:tens_with_ones)[tens], t([options[:prefix], :ones_with_tens].join('.'))[ones]].join
end