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