class NumbersAndWords::Strategies::FiguresConverter::Languages::Tr

Public Instance Methods

capacity_iteration() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/languages/tr.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

Private Instance Methods

one?() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/languages/tr.rb, line 18
def one?
  words_in_capacity(@current_capacity) == [translations.ones(1)]
end
thousand?() click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/languages/tr.rb, line 22
def thousand?
  @current_capacity == FiguresArray::THOUSAND_CAPACITY
end