svenfuchs/hashr — Issue #1: Overriding initialize
Author: rstacruz
Created: 2012-02-08 13:34:26+00:00
State: open

Is there a way to subclass `Hashr` and provide your own `initialize` method? Perhaps to do validation like so:

``` ruby
class Config < Hashr
def initialize(options)
super options
raise ConfigError, "output is not defined" unless output?
end
end
```

...or for whatever other reason the user would want to subclass Hashr. This example doesn't work properly right now.