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



14
15
16
# File 'lib/numbers_and_words/translations/hu.rb', line 14

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

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



9
10
11
12
# File 'lib/numbers_and_words/translations/hu.rb', line 9

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