3 ms·
Actually, if my memory serves me, a ruby hash can use any object a key! And considering everything in ruby is an object (even the class `Object`) it’s really qu
by rudolph9 6y ago
Actually, if my memory serves me, a ruby hash can use any object a key! And considering everything in ruby is an object (even the class `Object`) it’s really quite elegant
- vlunkr 6y agoThis seems to be getting downvotes? I don't know why, it's accurate. Anything can be a key in Ruby.