stack_frames

This is a patch for the Ruby language. It adds a function and class to get stack-frame information. It's an improvement on "caller", the existing global function for getting stack-frame information:

  1. "stack_frames" gives the following information that "caller" does not:
  2. "caller" just gives a string, which you have to parse out to get the function, file, and line. "stack_frames" returns these as separate fields of a new class, StackFrame.

Download

stack_frames-1.1.1.tar.gz

Or you can browse the individual files which I've extracted from the above tarball for your viewing pleasure:

README Well... read this!
CHANGES History
stack_frames.patch The patch
stack_frames.test.rb Automated test (main file)
StackFramesAssert.rb Automated test (auto-generated asserts)
Test.rb "Wayne-Unit" — slimmed down test framework

Old versions

Content of this site is © Wayne Conrad. All rights reserved.