Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#indifferent! does not seem to return an hash that works with #fetch #15

Open
victormartins opened this issue Aug 6, 2018 · 0 comments
Assignees
Labels

Comments

@victormartins
Copy link

Using HashKit v0.6.0

helper =  HashKit::Helper.new 
=> #<HashKit::Helper:0x000055cbd1f70498>
h = {foo: 1}
=> {:foo=>1}

helper.indifferent!(h)
=> {:foo=>1}

# Works with direct access
h['foo']
=> 1

# Fails using #fetch
h.fetch('foo')
KeyError: key not found: "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants