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

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

Instance Attribute Summary

Attributes included from Families::Base

#current_capacity, #parent_figures

Attributes inherited from Base

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

Instance Method Summary collapse

Methods included from Families::Base

#capacity_iteration, #complex_number_to_words, #complex_tens, #hundreds_number_to_words, #save_parent_figures, #simple_number_to_words, #strings_logic, #words_in_capacity

Methods included from Families::Helpers

#translate

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 => (is_hundred?), :is_one_hundred => (is_one_hundred?)})
end

#megsObject



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

def megs
  super({:is_one => words_in_capacity(@current_capacity) == [@translations.ones(1)]})
end