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
Defined in
Methods
transform()
transform(tag
): string
Transforms the given tag.
Parameters
• tag: Lexer
The tag that triggered the transformer.
Returns
string