Class: NumbersAndWords::Strategies::FiguresConverter::Languages::Nl

Inherits:
Base
  • Object
show all
Includes:
Families::Latin
Defined in:
lib/numbers_and_words/strategies/figures_converter/languages/nl.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

#complex_number_to_words, #complex_tens, #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

#capacity_iterationObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/numbers_and_words/strategies/figures_converter/languages/nl.rb', line 12

def capacity_iteration
  if FiguresArray::THOUSAND_CAPACITY == @current_capacity
    words = []
    capacity_words = words_in_capacity(@current_capacity)
    words.push megs unless capacity_words.empty?
    capacity_words.empty? ? [] : [capacity_words, words].join
  else
    super
  end
end

#hundreds_number_to_wordsObject



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

def hundreds_number_to_words
  [super.reverse.join]
end