Brian Candler wrote:
> I suggest you look at Kernel#caller instead.
> 
> Unfortunately it just gives you strings which you have to parse 
> yourself, and you'll probably need to grep out all the rubygems-related 
> paths.
> 
> For an example, look in the sinatra gem (lib/sinatra/base.rb, 
> specifically methods caller_locations and caller_files). Sinatra uses 
> this to locate the application source code, for reading inline 
> templates.

Thank you so much :)
-- 
Posted via http://www.ruby-forum.com/.