Class: NumbersAndWords::Translations::Cs

Inherits:
Base
  • Object
show all
Includes:
Extensions::FractionSignificance, Families::Base
Defined in:
lib/numbers_and_words/translations/cs.rb

Constant Summary

Constants inherited from Base

Base::I18N_NAMESPACE

Instance Method Summary collapse

Methods included from Extensions::FractionSignificance

#micro, #micro_prefix, #micros

Methods included from Families::Base

#mega, #megs, #micro_separator, #union

Methods inherited from Base

#t

Instance Method Details

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


29
30
31
# File 'lib/numbers_and_words/translations/cs.rb', line 29

def hundreds(number, options = {})
  t([options[:prefix], :hundreds, gender_to_use(options)].join('.'))[number]
end

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


33
34
35
# File 'lib/numbers_and_words/translations/cs.rb', line 33

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

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


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

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

#teens(numbers, options = {}) ⇒ Object


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

def teens(numbers, options = {})
  t([options[:prefix], :teens, gender_to_use(options)].join('.'))[numbers[0]]
end

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


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

def tens(number, options = {})
  t([options[:prefix], :tens, gender_to_use(options)].join('.'))[number]
end

#tens_with_ones(numbers, options = {}) ⇒ Object


25
26
27
# File 'lib/numbers_and_words/translations/cs.rb', line 25

def tens_with_ones(numbers, options = {})
  [tens(numbers[1], options), ones(numbers[0], options)].join(' ')
end

#zero(options = {}) ⇒ Object


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

def zero(options = {})
  ones(0, options)
end