swipely/docker-api — pull request #221 by mrflip (2014-11-29 12:52:03+00:00)
Title: Subclasses are honored

These are fairly trivial changes to allow subclasses to walk proud and tall as first-class citizens.

* to_s prints the actual class name
* calls go to eg. self.class not Docker::Image
* Images creating containers and containers creating images go through a private method stub that subclasses can override (allowing MyAwesomeImage < Docker::Image to create a MyAwesomeContainer if appropriate)