Class: NumbersAndWords::Strategies::Ru

Inherits:
Base
  • Object
show all
Includes:
TranslationsHelpers::Ru
Defined in:
lib/numbers_and_words/strategies/ru.rb

Constant Summary

Constants included from TranslationsHelpers::Base

TranslationsHelpers::Base::I18N_NAMESPACE

Instance Attribute Summary

Attributes inherited from Base

#figures, #words

Instance Method Summary collapse

Methods included from TranslationsHelpers::Base

#t

Methods inherited from Base

factory

Instance Method Details

#convert(figures) ⇒ Object



6
7
8
9
10
11
# File 'lib/numbers_and_words/strategies/ru.rb', line 6

def convert figures
  @figures = figures.reverse
  @words = strings

  @words.empty? ? zero : @words.reverse.join(' ')
end