module Schematrix::Coercers
The value converters the standard formats ship with. A coercer is any module answering coerce(value): a document value loads, an instance dumps, anything else passes through. The auxiliary files generator emits one copy of every built-in coercer into the shared coercion helper module of each output directory (see Generators::AuxiliaryFiles), so generated code keeps its property of having no runtime dependency on this gem; GENERATED_BODY and GENERATED_REQUIRE are what it emits.
Constants
- BUILTIN
-
The coercers generated output knows how to emit. A coercer a project passes through
scalar_types:outside this list is referenced by name only, never emitted.