kadirpekel/hammock — pull request #5 by maraujop (2012-09-03 16:11:16+00:00)
Title: Fixing inheritance and chaining

* If we subclass `Hammock`, we won't get subclass methods called, because chaining magic returns a `Hammock` instance, while it should return a `self.__class__` instance.
* On the other hand, if we set attributes in our subclass constructor, when chaining they get lost.

I've added a test case for both problems. This patch fixes the issues.

Cheers,
Miguel