Origin of a definition

Is there any way to find out the filename and line number of a
definition such as a class or method at runtime?

On Jul 7, 1:00 am, Oliver S. [email protected] wrote:

Is there any way to find out the filename and line number of a
definition such as a class or method at runtime?

Posted viahttp://www.ruby-forum.com/.

I ran across this blog post once and bookmarked it, perhaps this will
work for you.

http://aaronbedra.com/2008/6/12/slight-of-hand-for-the-ruby-man

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs