@josevalim I made it work using `public_method_defined?`, and also restricted it to only add methods defined in classes that call `attach_to` (or a subclass thereof.) This means that the methods in e.g. LogSubscriber are not set up.