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