v2_2_9 - Show latest stable - 0 notes - Class: Kernel
caller_locations(*args) public

Returns the current execution stackā€”an array containing backtrace location objects.

See Thread::Backtrace::Location for more information.

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

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

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

Optionally you can pass a range, which will return an array containing the entries within the specified range.

Show source
Register or log in to add new notes.