class NumbersAndWords::Translations::Pt

Public Instance Methods

hundreds(number, options = {}) click to toggle source
# 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 = {}) click to toggle source
Calls superclass method
# File lib/numbers_and_words/translations/pt.rb, line 8
def tens_with_ones(numbers, _options = {})
  super(numbers, separator: " #{union} ")
end