From: ChrisH Date: 2007-01-12T02:45:09+09:00 Subject: Re: Big project in ruby Robert Klemme wrote: > On 11.01.2007 18:18, Miquel wrote: > > So, when I write into a .rb file require 'whatever' I'm using the form > > require 'folder_a/folder_b/class_file.rb'. There any ruby > > variable which I can write require ruby_var+"/class_file.rb"? > > You can use any variable there since require is a function call like any > other - at least from the caller's perspective > > ruby_var = 'folder_a/folder_b' > require ruby_var + "/class_file" They could also add the path to the $LOAD_PATH, i.e: $LOAD_PATH<<''folder_a/folder_b' require 'class_file' cheers Chris