Skip to content

Instantly share code, notes, and snippets.

@simianhacker
Created May 4, 2012 17:30
Show Gist options
  • Save simianhacker/2596390 to your computer and use it in GitHub Desktop.
Save simianhacker/2596390 to your computer and use it in GitHub Desktop.
Example option object argument of for Class
class MyClass
constructor: (options) ->
# stuff here
myObject = new MyClass(bar: "foo", foo: "bar")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment