Over a million developers have joined DZone.

Wrap All Methods Of An Object

Given an existing object "obj", wraps all of its methods.  In this case, the wrapper prints a log of the method invocation, and the call stack of the call, but you can modify it to do anything...

virtual_class = class <

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}