From: Boris Glawe Date: 2005-12-08T09:37:35+09:00 Subject: Re: require "../foo" > > > I assume, files in settings contain info that is specific to your code > in foo and bar which the user has to create / provide. In that case I'd > also rely on the user to set the require path so that his settings can > be found. I'd also probably not necessarily use "require" to load those > settings. This for example has the disadvantage that you cannot easily > reload settings. I'd probably rather read something like "~/.foo.rb" > i.e. settings stored in a default location (which might be overridden > with a command line switch). > These settings are not meant to be used by the user, but by the progammer. I've stored Constants like names of cgi objects or strings that are used by the cgi libraries to specify the html version of the generated html code in these modules. Anyway it doesn't matter what my classes in /lib want to acces. I am looking for a more elegant way to access classes in /settings from classes the are stored in /lib. 'require ../settings/globalsettings" ' ist not accepted by the compiler as I've alread said. greets Boris