Mixin: Check_String

Eleven~ Check_String

Methods to check string expressions, cast to string if needed; requires Check_Number06 as superclass to defer to add. Return string node.

Source:

Methods


add(node)

[ 'add' a b ] for at least one string casts to string and returns node as concat.string.

Parameters:
Name Type Description
node Array

to check.

Source:

input(node)

[ 'input' prompt? default? ] returns node.string.

Parameters:
Name Type Description
node Array

to check.

Source:

len(node)

[ 'len' b ] casts to string and returns node.number.

Parameters:
Name Type Description
node Array

to check.

Source:

string(node)

[ 'string' value ] expects string value, returns node.string.

Parameters:
Name Type Description
node Array

to check.

Source: