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

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

#capacity_iterationObject


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

def capacity_iteration
  if FiguresArray::THOUSAND_CAPACITY == @current_capacity
    capacity_words = words_in_capacity(@current_capacity)
    capacity_words.empty? ? [] : [capacity_words, megs].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