Created
January 28, 2010 07:30
-
-
Save amiel/288525 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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