Class: NumbersAndWords::Strategies::FiguresConverter::Languages::Fr
- Inherits:
-
Base
- Object
- Base
- NumbersAndWords::Strategies::FiguresConverter::Languages::Fr
show all
- Defined in:
- lib/numbers_and_words/strategies/figures_converter/languages/fr.rb
Instance Attribute Summary
Attributes inherited from Base
#decorator, #figures, #language, #options, #translations
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #run
Instance Method Details
#capacity_iteration ⇒ Object
8
9
10
11
12
13
14
|
# 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
|
#hundreds ⇒ Object
16
17
18
|
# File 'lib/numbers_and_words/strategies/figures_converter/languages/fr.rb', line 16
def hundreds
super({ pluralize: simple_number_to_words.empty? })
end
|
#megs ⇒ Object
20
21
22
|
# File 'lib/numbers_and_words/strategies/figures_converter/languages/fr.rb', line 20
def megs
super({ number: @figures.number_in_capacity(@current_capacity) })
end
|