class Schematrix::Generators::Templates::DslBase
Base class for the DSL generator templates: builder modules whose methods define an instance of the schema through plain method calls. A project mixes a builder into its own class, with extend for a class body or include for instances, or calls build, which runs the block on the module’s own Builder class. Holds the classification of every property into a setter form and the bodies those forms render to; the notation modules add signatures where the output carries them.
The builder runtime is one hash, created on first use so the module needs no initializer. Every setter writes the property’s original key into it, nested slots build through their own builder modules, and to_h hands the hash out. No defaults apply and nothing validates, so a document built at runtime holds exactly what the DSL source declared; the parse contract (docs/dsl.md) reconstructs the same hash statically.
Constants
- SETTER_PARAMS
-
The argument list each setter form renders.