Class Lisp::Format::Directives::Plural
In: lib/facet/lisp-format.rb
Parent: Directive

Represents the ~R (Plural) directive. It outputs English plural suffixes depending on the given argument.

Methods

execute  

Public Instance methods

Outputs the given argument as an English plural suffix depending on the arguments value. If arg is not eql? to 1, a lowercase s is output, else nothing is output. The meaning of modifiers are:

:
backs up one argument before checking,
@
outputs y or ies instead of s and nothing,
:@
a combination of the two above.

[Validate]