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

Methods included from Families::Latin

#ones, #zero

Methods included from Families::Base

#mega, #megs, #teens, #tens, #union, #union_separator

Methods inherited from Base

#t

Instance Method Details

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



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

def hundreds number, options = {}
  options[:separator] = ''
  super number, options
end

#micros(capacity, number = nil, separator = '') ⇒ Object



17
18
19
# File 'lib/numbers_and_words/translations/hu.rb', line 17

def micros capacity, number = nil, separator = ''
  super capacity, nil, 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