Project

General

Profile

Actions

Feature #6646

closed

Objectified caller

Added by trans (Thomas Sawyer) about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
[ruby-core:45852]

Description

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.

Actions

Also available in: Atom PDF