From: Jiten Bhagat Date: 2009-06-14T18:00:07+09:00 Subject: Re: Basic help about "require" --0016e6dbea5accb364046c4b2a03 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Hi, In parent1.rb, try this: require File.join(File.dirname(__FILE__), '..', 'child', 'child1') Cheers, Jits 2009/6/14 =D5=C5=EA=BB=EA=C5 > 2009/6/14 Raveendran Perumalsamy > > > Hi All, > > > > I got a solution but i think its not a proper one. > > > > > > Solution > > > > Dir[File.join(File.dirname(__FILE__), 'child', "*.rb")].each do |file| > > require file > > end > > > > > > Any other solutions ? > > -- > > Posted via http://www.ruby-forum.com/. > > > > > At windows platform > you need a complete path of the file > --0016e6dbea5accb364046c4b2a03--