Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
rudolph9
5y ago
0 comments
Share
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
0 comments
default
newest
oldest
vlunkr
5y ago
This seems to be getting downvotes? I don't know why, it's accurate. Anything can be a key in Ruby.
j
/
k
navigate · click thread line to collapse