svenfuchs/hashr — Issue #2: Hashr.new should raise ArgumentError on bad input
Author: drbrain
Created: 2012-02-21 21:37:21+00:00
State: open

```
$ ruby -Ilib -rhashr -ryaml -e 'p Hashr.new YAML.load "travis"'
./lib/hashr.rb:41:in `initialize': undefined method `deep_symbolize_keys' for "travis":String (NoMethodError)
from -e:1:in `new'
from -e:1
```

While passing in a String is obviously garbage input, when loading from YAML (say, via travis-lint) if the YAML file contains parseable garbage a meaningful error should be raised by Hashr like ArgumentError.