From: Michael Neumann Date: 2001-08-24T04:39:32+09:00 Subject: [ruby-talk:20201] Re: Bug in require? Paul Brannan wrote: > On another note, is there any way to require a file out of the current > directory? Currently, I am using: > > def requirelocal(file, *args) > caller_file, *foo = caller[0].split(':') > caller_dir = File.dirname(caller_file) > require File.join(caller_dir, file) > end Put the current directory before any other $LOAD_PATH.unshift "." require "file" Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de