Skip to content

Instantly share code, notes, and snippets.

Created February 27, 2014 11:55
Show Gist options
  • Save anonymous/9248738 to your computer and use it in GitHub Desktop.
Save anonymous/9248738 to your computer and use it in GitHub Desktop.
test
class nozem
constructor: (@var1="def", @var2="def2") ->
# yep, can be empty!
some_class_func: ->
[@var1, @var2] # will return this array
some_class_func2: (arg1, arg2) ->
@some_class_func() #class methods
f = new nozem
console.log(f.some_class_func2()) # ["def", "def2"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment