Skip to content

Instantly share code, notes, and snippets.

@lumin3000
Created December 18, 2010 10:16
Show Gist options
  • Select an option

  • Save lumin3000/746376 to your computer and use it in GitHub Desktop.

Select an option

Save lumin3000/746376 to your computer and use it in GitHub Desktop.
module pattern in CoffeeScript
jclass = ()->
max = 1
res = (x)->alert 2
result=
alert:(x)->alert 1
ds:(x,y)->
alert(y+max)
instance = jclass null
instance.ds 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment