Just put
puts caller
anywhere in the code. If you don’t like its format, it’s an array of strings, so you can do some regex manipulation for a desired output.
Just put
puts caller
anywhere in the code. If you don’t like its format, it’s an array of strings, so you can do some regex manipulation for a desired output.