Emulating Node.js Modules in Ruby
andrew.ghost.org
andrew.ghost.org
#load actually allows you to load against an anonymous module to protect the global namespace. It would be interesting to provide a non-anonymous module there.
http://www.ruby-doc.org/core-2.0.0/Kernel.html#method-i-load
In the end, I found that deviating from such a fundamental part of the language to be less worthwhile than expected. The cognitive load of doing the "non-standard" thing is just to high.
It's early days but could be quite an interesting way to handle dependencies in ruby.