Skip to content

Instantly share code, notes, and snippets.

@zeffii
Forked from anonymous/darpa.coffee
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/9248742 to your computer and use it in GitHub Desktop.
Save zeffii/9248742 to your computer and use it in GitHub Desktop.
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"]
[am, am2] = f.some_class_func2()
console.log("-----#{am} and #{am2}------")
# string formatting
# -----def and def2------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment