Skip to content

Instantly share code, notes, and snippets.

@amiel
Created January 28, 2010 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amiel/288525 to your computer and use it in GitHub Desktop.
Save amiel/288525 to your computer and use it in GitHub Desktop.
var MyModule = (function() {
function private_helper_function(a,b) {
Ruby.puts(a,b);
}
var functions = {
foo: function(a) {
private_helper_function(a, "world");
},
bar: function(b) {
private_helper_function("hey", b);
}
};
return functions;
})();
MyModule.foo("hello");
MyModule.bar("world");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment