Utilities for coffee-script classes
You can make much more with CoffeeScript classes.
extends is implemented in coffee with
for key of parentchildkey= parentkeyif __hasProp_callparentkey
it makes absolutely impossible to define class instance variables.
classkit.extendsWithProp default inheritance is redefined using
child.__proto__ = parent. So it would not work on engines which do not support
Ensure that you call this method before any class properties declaraction, 'cause it'll drop'em all.
Once you use
extendsWithProto you should use it on all descendents.
Here is also helpers to define ruby-like instance & class variables.
Instance variables usage requires
See tests for examples.