From the doc: ttp://www.ruby-doc.org/core-2.0/Kernel.html#method-i-caller_locations

caller_locations(start=1, length=nil) array or nil click tooggle ource
caller_locations(range) ¢ª array or nil

*Returns the current execution stack¡½an array containing backtrace ocation objects.

*The optional start parameter determines the number of initial stack ntries to omit from the top of the stack.

*A second optional length parameter can be used to limit how many ntries are returned from the stack.

*Returns nil if start is greater than the size of current execution tack.

Could anyone give me small snippets to understand this methods?

Thanks