Module: NumbersAndWords::I18n::Plurals::Fr

Extended by:
Fr
Included in:
Fr
Defined in:
lib/numbers_and_words/i18n/plurals/fr.rb

Constant Summary collapse

RULE =
lambda { |n| one_conditions(n) ? :one : :other }

Instance Method Summary collapse

Instance Method Details

#one_conditions(n) ⇒ Object



9
10
11
# File 'lib/numbers_and_words/i18n/plurals/fr.rb', line 9

def one_conditions n
  n % 10 == 1 && n % 100 != 11
end