I wonder if there is a way to get an AST of a method? Also, it’d be
really cool if that AST after some transformations could be compiled
back to replace that original method (or at least could compiled back
into a string).
There are some ruby gems allowing to do it (for instance,
https://github.com/quix/live_ast) but all of them are buggy. It’d be
really cool if JRuby provided some kind of API (even if it’s an
internal Java API) to do it.