Module: NumbersAndWords::Strategies::FiguresConverter::Languages::Families::Cyrillic

Includes:
Base
Included in:
Ru, Ua
Defined in:
lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb

Instance Attribute Summary

Attributes included from Base

#current_capacity, #parent_figures

Instance Method Summary collapse

Methods included from Base

#capacity_iteration, #complex_number_to_words, #complex_tens, #hundreds_number_to_words, #save_parent_figures, #simple_number_to_words, #strings_logic, #words_in_capacity

Methods included from Helpers

#translate

Instance Method Details

#genderObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb', line 9

def gender
  @current_capacity ||= 0

  case @current_capacity
  when 1
    :female
  when 0
    options.gender.result
  else
    :male
  end
end

#megsObject



28
29
30
# File 'lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb', line 28

def megs
  super({:number => @figures.number_in_capacity(@current_capacity)})
end