From: "trans (Thomas Sawyer)" Date: 2012-06-26T05:22:18+09:00 Subject: [ruby-core:45852] [ruby-trunk - Feature #6646][Open] Objectified caller Issue #6646 has been reported by trans (Thomas Sawyer). ---------------------------------------- Feature #6646: Objectified caller https://bugs.ruby-lang.org/issues/6646 Author: trans (Thomas Sawyer) Status: Open 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/