Hello everyone -
I am just getting comfortable with ruby, having come over from the Java / .NET world and I am a little confused about best practices regarding namespaces and project organization.
I have wrapped all of the classes in my current project in a namespace using modules but am a bit confused about how I should structure the files in the filesystem... I am used to having a project layout that follows the namespace hierarchy. For example:
(misc project docs)
my_app.rb <- main app entry point
(extensions to ruby classes)
some_lib.rb <- main library stub loader thingie
Is this feasible with ruby or am I opening up a bag of worms here? To be specific, would it be "right" to define the namespace for "some_lib" above like so:
(a class goes here)
... and then require the lib in an app that uses it like so:
with all of the necessary lib files loaded in some_lib.rb?
Would it be unwise to use relative paths for files that are loaded/required within some_lib.rb? Is this making sense?
Thanks for any assistance in helping me cut through my fog...