biswanaths/namespace
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
namespace
an Erlang inspired method for organizing functions
Simple example
(function(){
namespace("example", public);
function private(){ return "private" };
function public(){ private(); };
})();
example.public() // -> "private"
See http://jweir.github.com/namespace for documentation