class Schematrix::Generators::Base

Base class for all output generators. A generator renders the compiled record of one object schema as one file: an ERB template filled through a template helper class, then formatted with SyntaxTree. Subclasses provide the template and, optionally, override helper methods to produce different output formats.

The shared rendering lives in the Templates modules: Templates::RubyHelpers (constructor, from_h/to_h), Templates::Coercions (the coerce_ methods), Templates::SorbetHelpers and Templates::TypeComposer (type algebra for the Sorbet and RBS notations), and Templates::Base (declaration scaffolding).