Class: ScriptBuilder

PodJS. ScriptBuilder

Factory class that assembles blocks to form new PodJS.Scripts attached to PodJS.Pod#Resources.

Instances of this class can only be created by the environment itself.

The ScriptBuilder, when created, will automatically be populated with instance members that have the same name as the blocks registered by all pods in the environment. Those instance members will each return a function that, when called, will add a new block of that type to the script and then return the ScriptBuilder so the next block in the sequence can be easily added.