Karl von Laudermann
2/11/2008 3:48:00 PM
On Feb 11, 9:51 am, Brandon Lawler <grayswan...@gmail.com> wrote:
> Requiring local files always drove me nuts, due to the need to
> explicitly declare the directory in the require statement with require
> File.dirname(__FILE__) + '\somefile.rb', which was rather bulky and
> inelegant.
I don't understand this; if somefile.rb is in the same directory as
the file that's requiring it, then why do you need the full path? Why
doesn't
require 'somefile.rb'
work by itself?