Tagscript

tagscript


Class: IntegerTransformer

Integer transformer transforms an integer based on the given parameters.

If no parameters are given, the integer will be returned as is.

if ++ parameter is given, the integer will be incremented. if -- parameter is given, the integer will be decremented.

Implements

Constructors

new IntegerTransformer()

new IntegerTransformer(int): IntegerTransformer

Parameters

int

`${number}` | `${bigint}`

Returns

IntegerTransformer

Defined in

Transformer/Integer.ts:15

Methods

transform()

transform(tag): string

Transforms the given tag.

Parameters

tag

Lexer

The tag that triggered the transformer.

Returns

string

Implementation of

ITransformer.transform

Defined in

Transformer/Integer.ts:19

On this page