[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

"require and subdirectories" problem

Recheis Meinrad

9/9/2003 1:20:00 PM

hi,
consider a script foo.rb that contains the line

require './lib/lib.rb'

lib.rb contains the line:

require './lib/annother.rb'

it works.
(require 'annother.rb' doesn't work allthough the file annother.rb is placed in the same directory as lib.rb)

but i am not very pleased with it. the library in the directory lib, must not know from where it is required.
what can i do so that lib can require all it's files no matter where the script that requires lib.rb is located?


- henon