TagScript
classes
Functiontransformer

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

Source

lib/Transformer/Function.ts:9

Properties

fn

private readonly fn: TransformerFunction

Source

lib/Transformer/Function.ts:7

Methods

transform()

transform(tag): string

Parameters

tag: Lexer

Returns

string

Implementation of

ITransformer.transform

Source

lib/Transformer/Function.ts:13