From: "matz (Yukihiro Matsumoto)" Date: 2012-06-26T11:59:53+09:00 Subject: [ruby-core:45874] [ruby-trunk - Feature #6646][Closed] Objectified caller Issue #6646 has been updated by matz (Yukihiro Matsumoto). Status changed from Open to Closed ---------------------------------------- Feature #6646: Objectified caller https://bugs.ruby-lang.org/issues/6646#change-27465 Author: trans (Thomas Sawyer) Status: Closed Priority: Normal Assignee: Category: core Target version: 2.0.0 In Feature #3917 it is mentioned short-coming of caller: * caller() returns an array of "filename:linenum in `method'" string. User must parse it and retrieve filename and linenum by rexp. It is also very heavy weight task. I think many have wished for objectified trace. caller[0].file caller[0].line caller[0].in Different method would be needed than #caller though to prevent backward compatibility issue. -- http://bugs.ruby-lang.org/