Boris G. wrote:
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.
The programmer in this case is the user of your lib.
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.
But you did actually include the opening quote, did you?
13:23:36 [timezones]: ruby -c -e ‘require “…/foo”’
13:30:53 [timezones]: ruby -c -e ‘require …/foo"’
-e:1: unterminated string meets end of file
-e:1: syntax error
My compiler accepts this (i.e. syntax ok). In which of the files do you
have this line? Is it in the main script or in the lib script? In your
scripts you can use somehing like
load File.join(File.dirname(FILE), “…”, “settings”,