coffee_classkit

Utilities for coffee-script classes

CoffeeClasskit

You can make much more with CoffeeScript classes.

As of extends is implemented in coffee with

for key of parent
  child[key= parent[key]  if __hasProp_.call(parentkey)

it makes absolutely impossible to define class instance variables.

With classkit.extendsWithProp default inheritance is redefined using child.__proto__ = parent. So it would not work on engines which do not support __proto__.

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 extendsWithProto.

See tests for examples.

BSD