Module: NumbersAndWords::Translations::Families::Cyrillic

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

Instance Method Summary collapse

Methods included from Base

#mega, #megs, #micro_separator, #teens, #tens, #tens_with_ones, #union

Instance Method Details

#hundreds(number, _options = {}) ⇒ Object


17
18
19
# File 'lib/numbers_and_words/translations/families/cyrillic.rb', line 17

def hundreds(number, _options = {})
  t(:hundreds)[number]
end

#integral(number, _options = {}) ⇒ Object


21
22
23
# File 'lib/numbers_and_words/translations/families/cyrillic.rb', line 21

def integral(number, _options = {})
  t(:integral, count: number)
end

#ones(number, options = {}) ⇒ Object


13
14
15
# File 'lib/numbers_and_words/translations/families/cyrillic.rb', line 13

def ones(number, options = {})
  t(:ones)[options[:gender]][number]
end

#zero(_options = {}) ⇒ Object


9
10
11
# File 'lib/numbers_and_words/translations/families/cyrillic.rb', line 9

def zero(_options = {})
  t(:ones).values.first[0]
end