class NumbersAndWords::Strategies::FiguresConverter::Languages::De

Public Instance Methods

complex_number_to_words() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/languages/de.rb, line 16
def complex_number_to_words
  (1..@figures.capacity_count).map do |capacity|
    @current_capacity = capacity
    capacity_iteration
  end
end
megs() click to toggle source
Calls superclass method
# File lib/numbers_and_words/strategies/figures_converter/languages/de.rb, line 35
def megs
  super({ number: @figures.number_in_capacity(@current_capacity) })
end
ones() click to toggle source
Calls superclass method
# File lib/numbers_and_words/strategies/figures_converter/languages/de.rb, line 23
def ones
  super(postfix:)
end
postfix() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/languages/de.rb, line 27
def postfix
  case (@current_capacity ||= 0)
  when 1 then :combine
  when 0 then :default
  else :gender
  end
end
print_megs_words() click to toggle source
print_words() click to toggle source

Private Instance Methods

complex_part() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/languages/de.rb, line 59
def complex_part
  @strings - simple_part
end
print_megs() click to toggle source
print_other() click to toggle source
print_thousands() click to toggle source
simple_part() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/languages/de.rb, line 55
def simple_part
  @strings.reject { |f| f.is_a?(Array) }
end