harukizaemon/hamster — pull request #13 by misfo (2012-08-17 03:44:23+00:00)
Title: Implement Hamster::Hash.new to allow subclassing

This also implements `Hamster.hash` as an alias to `new` to keep backwards compatibility.

Subclassing `Hamster::Hash` could be very useful for usage similar to what Clojure's [defrecord](http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/defrecord) allows. Modeling your data as immutable values FTW!