Hello, as I want to avoid name clashes I tried to organise them like this (just a fake example, reflecting reality)
lib/mylib.rb contains
module Mylib
module TestDatas
FOO = "Ho yeah"
end
require 'somelib/tools'
require 'somelib/motor'
end
somelib/tools.rb contains
class Mylib::Tools
end
somelib/motor.rb contains
class Mylib::Motor
def something()
Mylib::TestDatas.FOO
end
end
Well, I did this by try/error until I had no more execution errors and having them behaving as expected but is there any caveat ?
I'm just suprised by the location of the requires statements
Thanks