Tagscript

Class: FunctionTransformer

Transformers are used to transform a value based on the tag at runtime.

Implements

Constructors

new FunctionTransformer()

new FunctionTransformer(fn): FunctionTransformer

Parameters

fn: TransformerFunction

Returns

FunctionTransformer

Defined in

Transformer/Function.ts:9

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/Function.ts:13

On this page