From: Jean-denis Vauguet Date: 2010-03-24T12:50:56+09:00 Subject: Re: require, from within lib, files located under the local path 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/.