KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In Ruby, I want to store some stuff in a Hash, but I don't want it to be case-sensitive. So for example: h = Hash.new h["HELLO"] = 7 puts h["hello"] This should output 7, even though the case is different. Can I just override the equality method of the hash or something similar? Thanks.
Tags (comma-separated)
Save Edits
Cancel