Created
May 2, 2012 13:12
-
-
Save assertchris/2576449 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function::implements = (argv...) -> | |
| for proto in argv | |
| for key, value of proto:: | |
| @::[key] = value | |
| @ | |
| class Animal | |
| hello: (what) -> | |
| alert(what) | |
| class Organic | |
| foo: (what) -> | |
| alert(what) | |
| class Snake extends Animal | |
| @implements Organic | |
| options: | |
| "foo": "bar" | |
| "hello": "world" | |
| constructor: (hello, foo) -> | |
| @hello(hello) | |
| @foo(foo) | |
| new Snake("world", "bar"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment