Skip to content

Instantly share code, notes, and snippets.

@jacob414
Created January 24, 2012 09:45
Show Gist options
  • Save jacob414/1669303 to your computer and use it in GitHub Desktop.
Save jacob414/1669303 to your computer and use it in GitHub Desktop.
Writing CoffeeScript Modules for Browser and Node
# See http://braintostring.blogspot.com/2012/01/writing-javascript-modules-for-browser.html
foo = exports? and @ or @foo = {}
class foo.ExampleClass
method: -> 1
foo.func = -> 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment