Class: NumbersAndWords::Translations::Pt

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



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

def hundreds(number, options = {})
  return t(:one_hundred) if options[:is_one_hundred]
  return t(:hundreds)[number] if options[:is_hundred]

  [t(:hundreds)[number], union].join(' ')
end

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



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

def tens_with_ones(numbers, _options = {})
  super numbers, separator: " #{union} "
end