How to add new item to hash

前端 未结 7 1236
余生分开走
余生分开走 2020-12-22 18:44

I\'m new to Ruby and don\'t know how to add new item to already existing hash. For example, first I construct hash:

hash = {item1: 1}

after

7条回答
提交回复
热议问题