Fork me on GitHub

Tag CommonJS

CommonJS Module System in Ruby

I really like the CommonJS module system, which is explicit, rather than implicit as Kernel#require in Ruby. So rather than putting everything into the global namespace, require in CommonJS simply returns an object which contains the stuff you explicitly exported from the required file. For example:

About

RSS

All Posts CommonJS

Tags

GitHub projects

Twitter @botanicus

Recent Comments