class NumbersAndWords::Strategies::FiguresConverter::Languages::Ka
Public Instance Methods
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/ka.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
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/ka.rb, line 16 def hundreds super({ only_hundreds: figures[0, 2] == [0, 0] }) end
Calls superclass method
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/ka.rb, line 20 def megs prefix = (:partials if @figures.hundreds || @figures.tens || @figures.ones) super(prefix:) end
Calls superclass method
Private Instance Methods
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/ka.rb, line 28 def one? words_in_capacity(@current_capacity) == [translations.ones(1)] end
Source
# File lib/numbers_and_words/strategies/figures_converter/languages/ka.rb, line 32 def thousand? @current_capacity == FiguresArray::THOUSAND_CAPACITY end