Module: NumbersAndWords::Locales::Plurals

Defined in:
lib/locales/plurals.rb

Constant Summary collapse

RU =
lambda do |count|
  case count
  when Integer
    case
    when 1 == count
      :one
    when (2..4).include?(count)
      :few
    else
      :many
    end
  else
    :other
  end
end
EN =
lambda { |count| 1 == count ? :one : :other }