Introducing prism-merge
Prism::Merge uses Prism syntax trees to combine Ruby source. Matching recognizes declarations, renamed methods, and nodes moved inside control-flow blocks, helping template updates avoid duplicate code. It also supports AST-based receiver renaming when gemspec block variable names differ.
Read the upstream README for installation and usage, or browse the project repository.