Methods and user-defined operators
|
· | refer to-$caller.variable_name_to_refer-or assign $caller.variable_name_to_assign[value]-a variable as if you were in the place where the defined method or operator was called from;
|
· | to find out who called the method or operator. In this case you will need to use $caller.self or $caller.method [3.4.5];
|
· | to find out the caller method name you will need to use $caller.method.name [3.4.5].
|
Copyright © 19972021 Art. Lebedev Studio | http://www.artlebedev.com | Last updated: 20.04.2017 |