From: nobu.nokada@... Date: 2002-04-24T20:51:50+09:00 Subject: Re: Require vs. C++ include Hi, At Wed, 24 Apr 2002 17:56:41 +0900, Werner wrote: > From the Ruby book (I have to admit I did not read the entire book), I > deduced that "require" in ruby does kind of the same thing as > "include" in c/c++. I then tried to use the Hello world class (in > Hello.rb) given with the samples within another source file(in the > same directory) by specifying "Require Hello" - The same way I saw it > done in library files. Upon trying to run my little program I got the > error that the file Hello could not by loaded(same directory???). Ruby doesn't search required files from the requiring file's dirctory. It isn't equivalent to #include directive. -- Nobu Nakada