Class: NumbersAndWords::Strategies::FiguresConverter::Languages::Pt

Inherits:
Base
  • Object
show all
Defined in:
lib/numbers_and_words/strategies/figures_converter/languages/pt.rb

Instance Attribute Summary

Attributes inherited from Base

#decorator, #figures, #language, #options, #translations

Instance Method Summary collapse

Methods inherited from Base

#initialize, #run

Constructor Details

This class inherits a constructor from NumbersAndWords::Strategies::FiguresConverter::Base

Instance Method Details

#hundredsObject



8
9
10
# File 'lib/numbers_and_words/strategies/figures_converter/languages/pt.rb', line 8

def hundreds
  super({ is_hundred: hundred?, is_one_hundred: one_hundred? })
end

#megsObject



12
13
14
# File 'lib/numbers_and_words/strategies/figures_converter/languages/pt.rb', line 12

def megs
  super({ number: @figures.number_in_capacity(@current_capacity) })
end