Skip to content

Instantly share code, notes, and snippets.

@melvynhills
Created October 11, 2011 11:39
Show Gist options
  • Save melvynhills/1277877 to your computer and use it in GitHub Desktop.
Save melvynhills/1277877 to your computer and use it in GitHub Desktop.
CoffeeScript Compilation
class HelloCoffeeTest
@testMain: ->
console.log "Hello, CoffeeScripter!"
HelloCoffeeTest.testMain()
var HelloCoffeeTest;
HelloCoffeeTest = (function() {
function HelloCoffeeTest() {}
HelloCoffeeTest.testMain = function() {
return console.log("Hello, CoffeeScripter!");
};
return HelloCoffeeTest;
})();
HelloCoffeeTest.testMain();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment