From: Ilias Lazaridis Date: 2011-06-16T04:55:31+09:00 Subject: Re: RFC - One word alias for require_relative On 15 Ιούν, 22:26, Florian Gilcher wrote: > On Jun 15, 2011, at 9:10 PM, Ilias Lazaridis wrote: > > > require_relative 'lib/alter' > > require './lib/alter' > > > To my understanding, both should do the same thing. > > > Is this right? > > No, the first is relative to the file, the second is relative to "Dir.pwd", the process working directory. I understand. Thus the first works for the main file, *and* for included files which can use again require_relative. The second works only for the main file (usually executed from it's location). - So it looks I can't drop require_relative. And so I still need a shorter name. . -- http://lazaridis.com