Refract
Refract lets you re-write Ruby at the AST level.
- The
Converter
walks a concrete Prism syntax tree and produces an abstract Refract tree. - The
MutationVisitor
walks the Refract tree, allowing you to mutate existing nodes and insert new nodes. - Finally, the
Formatter
walks the Refract tree producing valid Ruby code.