DEV Community

Discussion on: Last month I learnt - ruby can be weird

Collapse
 
katafrakt profile image
Paweł Świątkowski

Well you can use any object as the key in the hash. Including nil, other hash or ActiveRecord object ;) That wouldn't be very performant, but it's technically possible.