Publisher review:Identifying the current method script creates a method called something like iam that uses caller to return the current execution stack, and then parse out the bits you want. Identifying the current method script creates a method called something like iam that uses caller to return the current execution stack, and then parse out the bits you want.
Recall the caller returns the execution stack in an array. So, if you use caller directly in the method you want to have identify itself, you want the first array element, caller(0)[0]. From another method, however, you need the second element - caller(0)[1] since you added the call to iam to the execution stack.
Identifying the current method is a Ruby script for Internet, Browsers and Tools scripts design by Two Grunts.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
creates a method called something like iam that uses caller to return the current execution stack, and then parse out the bits you want.
Operating system:Windows / Linux / Mac OS / BSD / Solaris