I wonder what would be the easiest way to create transactional/undoable
modifications to Ruby’s method, classes, hierarchies…
I started with
def C.method_added m
define_method :new_method2 do |*args|
but it seems that method_added is called after methods additions, so
there is no way to alias and save it into an array to achieve some kind
any clues ?