How To Spy on Your Ruby Methods
Ruby has a built-in tracing system which you can access using the TracePoint class. Some of the things you can trace are method calls, new threads & exceptions. Why would you want to use this? Well, it could be useful if you want to trace the execution of a certain method. You will be able … Read more