On Jan 25, 2008 2:28 PM, Ben Johnson <bjohnson / contuitive.com> wrote:
> I have not chimed in because I found another solution to my problem and
> I realized what I was asking was nearly impossible. I also agree that
> caller seems to be used for a human to read and analyze vs using it in
> your code.

For the adventurous (or just foolhardy, I'm still not sure which:)

caller.map do |line|
  /([^:]+):(\d*)(?::in `([^']+)')?/.match(line)[1,3]
end

will return a series of arrays: [file, line, method name] (as strings)

You know, until the format of caller's strings changes...

Judson
-- 
Your subnet is currently 169.254.0.0/16.  You are likely to be eaten by a grue.