From: Bob Hutchison Date: 2008-02-11T22:57:59+09:00 Subject: Re: Better relative requires with Need Hi, On 10-Feb-08, at 11:34 AM, Drew Olson wrote: > As > far as joining the file path, what exactly does this buy me? You can avoid the problem (leaving it entirely in the hands of your users) if you write it this way: File.expand_path(block.call, File.dirname(eval("__FILE__",block.binding))) And it's shorter. Anyway, thanks for the gem! Cheers, Bob ---- Bob Hutchison -- tumblelog at http://www.recursive.ca/so/ Recursive Design Inc. -- weblog at http://www.recursive.ca/hutch http://www.recursive.ca/ -- works on http://www.raconteur.info/cms-for-static-content/home/