Hi,
I have my code splitted up in several directories:
…
lib/foo.rb
lib/bar.rb
setttings/globalsettngs.rb
setttings/othersettings.rb
…
If for example foo.rb want to use classes, modules or methods from
“settings/globalesettings.rb” the ruby compiler refuses this in foo.rb:
require “…/settings/globalsettings”
I always use this as a workaround:
$: << “…”
require “settings/globalsettings”
where $: is the variable storing the path where to search for files.
Is there a more elegant way to access files in “…/settings”
thanks and greets
Boris