Class rule

License Plate Language Handler

Class Overview

Fields

rule.__call Add a check to the rule.

Methods

rule:Add(check) Add a check to this plural rule.
rule:Check(num) Check a number against this rule.
rule:Register() Register this plural rule.

Fields

rule.__call
Add a check to the rule.

See also:

Methods

rule:Add(check)
Add a check to this plural rule.

Parameters:

  • check function, table, number or bool The checker function to check again.

Returns:

    rule
rule:Check(num)
Check a number against this rule.

Parameters:

  • num number The number to check with.

Returns:

    number The plural form index to use for this number.
rule:Register()
Register this plural rule.