Class plural

License Plate Language Handler

Class Overview

Methods

plural:Set(id, Plural) Set the data for this plural.
plural:Check(num) Get the plural form for a given number.

Metamethods

plural:__call(...) Set the data for this plural.

Methods

plural:Set(id, Plural)
Set the data for this plural.

Parameters:

  • id string Key for this plural.
  • Plural vararg forms.

Returns:

    plural
plural:Check(num)
Get the plural form for a given number.

Parameters:

  • num number The number to check.

Returns:

    optional string Plural form, or nil of none is found.

Metamethods

plural:__call(...)
Set the data for this plural.

Parameters:

  • ... vararg Input arguments.

Returns:

    plural

See also: