class NumbersAndWords::Translations::Cs
Public Instance Methods
Source
# 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
Source
# File lib/numbers_and_words/translations/cs.rb, line 33 def integral(number, _options = {}) t(:integral, count: number) end
Source
# File lib/numbers_and_words/translations/cs.rb, line 13 def ones(number, options = {}) t([options[:prefix], :ones, options[:gender]].join('.'))[number] end
Source
# 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
Source
# 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
Source
# 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
Source
# File lib/numbers_and_words/translations/cs.rb, line 9 def zero(options = {}) ones(0, options) end
Private Instance Methods
Source
# File lib/numbers_and_words/translations/cs.rb, line 43 def gender_to_use(options) ordinal?(options) ? options[:gender] : nil end
Source
# File lib/numbers_and_words/translations/cs.rb, line 39 def ordinal?(options) options[:prefix] == :ordinal end