class NumbersAndWords::Strategies::FiguresConverter::Languages::Fr
Public Instance Methods
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/fr.rb, line 8 def capacity_iteration words = [] capacity_words = words_in_capacity(@current_capacity) words.push(megs) unless capacity_words.empty? words += capacity_words unless thousand? && one? words end
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/fr.rb, line 16 def hundreds super({ pluralize: simple_number_to_words.empty? && (@parent_figures.nil? || @parent_figures.size == 3) }) end
Calls superclass method
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/fr.rb, line 24 def megs super({ number: @figures.number_in_capacity(@current_capacity) }) end
Calls superclass method
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/fr.rb, line 20 def tens super({ alone: @current_capacity&.positive? ? false : nil }) end
Calls superclass method
Private Instance Methods
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/fr.rb, line 30 def one? words_in_capacity(@current_capacity) == [translations.ones(1)] end
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/fr.rb, line 34 def thousand? @current_capacity == FiguresArray::THOUSAND_CAPACITY end