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

Accessing a key named 'key' throws an error #29

Closed
connor opened this issue Dec 4, 2011 · 1 comment
Closed

Accessing a key named 'key' throws an error #29

connor opened this issue Dec 4, 2011 · 1 comment

Comments

@connor
Copy link

connor commented Dec 4, 2011

I get an argumentError when trying to access a key named key in a hash I'm using. I've looked through the documentation, and it's looking like I'm out of luck right now. Is there any way around this that I haven't found yet?

@connor
Copy link
Author

connor commented Dec 4, 2011

I solved this by accessing it like so:

hash[:key]

Closing this issue. It ought to be brought up in the documentation, though!

@connor connor closed this as completed Dec 4, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant