Module: NumbersAndWords::I18n::Plurals::Lv

Defined in:
lib/numbers_and_words/i18n/plurals/lv.rb

Constant Summary collapse

RULE =
->(number) { one_conditions(number) ? :one : :other }

Class Method Summary collapse

Class Method Details

.one_conditions(number) ⇒ Object


11
12
13
# File 'lib/numbers_and_words/i18n/plurals/lv.rb', line 11

def one_conditions(number)
  number % 10 == 1 && number % 100 != 11
end