mitsuhiko/classy — pull request #13 by alexisferreyra (2012-10-30 00:09:12+00:00)
Title: Support for forward declaration of classes.

- Class.$define : keeps a table of existing classes to allow forward declaration of types:

```
Animal = Class.$define("Animal"); // forward declaration of class Animal

Horse = Class.$define("Horse", Animal, { /* Horse methods here */ });

Animal = Class.$define("Animal", { /* animal methods here */ });
```
- Class.$append : allows extending existing class object with new methods:
```
Animal = Class.$extend({ /* methods here */ });

Animal.$append({ newMethod: function(){
/*........*/ }
});
```
This can be used as shortcut with $define.

- Tests fixed and tests added for new methods.